MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / evalPrint

Method evalPrint

app/exiv2.cpp:613–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611} // Params::evalYodAdjust
612
613int Params::evalPrint(const std::string& optArg) {
614 int rc = 0;
615 switch (action_) {
616 case Action::none:
617 switch (optArg[0]) {
618 case 's':
619 action_ = Action::print;
620 printMode_ = pmSummary;
621 break;
622 case 'a':
623 rc = evalPrintFlags("kyct");
624 break;
625 case 'e':
626 rc = evalPrintFlags("Ekycv");
627 break;
628 case 't':
629 rc = evalPrintFlags("Ekyct");
630 break;
631 case 'v':
632 rc = evalPrintFlags("Exgnycv");
633 break;
634 case 'h':
635 rc = evalPrintFlags("Exgnycsh");
636 break;
637 case 'i':
638 rc = evalPrintFlags("Ikyct");
639 break;
640 case 'x':
641 rc = evalPrintFlags("Xkyct");
642 break;
643 case 'c':
644 action_ = Action::print;
645 printMode_ = pmComment;
646 break;
647 case 'p':
648 action_ = Action::print;
649 printMode_ = pmPreview;
650 break;
651 case 'C':
652 action_ = Action::print;
653 printMode_ = pmIccProfile;
654 break;
655 case 'R':
656#ifdef NDEBUG
657 std::cerr << progname() << ": " << _("Action not available in Release mode") << ": '" << optArg << "'\n";
658 rc = 1;
659#else
660 action_ = Action::print;
661 printMode_ = pmRecursive;
662#endif
663 break;
664 case 'S':
665 action_ = Action::print;
666 printMode_ = pmStructure;
667 break;
668 case 'X':
669 action_ = Action::print;
670 printMode_ = pmXMP;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected