MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / main

Function main

tools/openpgl_debug/openpgl_debug.cpp:714–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714int main(int argc, char *argv[])
715{
716 std::list<std::string> args(argv, argv + argc);
717
718 DebugParams debugParams;
719 bool success = parseCommandLine(args, debugParams);
720 success = success ? debugParams.validate() : false;
721
722 if (success)
723 {
724 switch (debugParams.type)
725 {
726 case HELP:
727 print_help();
728 break;
729
730 case FIT_FIELD:
731 fit_field(debugParams);
732 break;
733 case UPDATE_FIELD:
734 update_field(debugParams);
735 break;
736
737 case VALIDATE_FIELD:
738 validate_field(debugParams);
739 break;
740
741 case VALIDATE_SAMPLES:
742 validate_samples(debugParams);
743 break;
744 case EXPORT_SAMPLES:
745 export_samples(debugParams);
746 break;
747 case COMPARE_SAMPLES:
748 compare_samples(debugParams);
749 break;
750 case COMPARE_FIELDS:
751 compare_fields(debugParams);
752 break;
753 case UPDATE_COMPARE_FIELDS:
754 update_compare_fields(debugParams);
755 break;
756 case MERGE_SAMPLES:
757 merge_samples(debugParams);
758 break;
759 default:
760 print_help();
761 break;
762 }
763 }
764 else
765 {
766 }
767
768 return 0;
769}

Callers

nothing calls this directly

Calls 12

fit_fieldFunction · 0.85
update_fieldFunction · 0.85
validate_samplesFunction · 0.85
export_samplesFunction · 0.85
compare_samplesFunction · 0.85
compare_fieldsFunction · 0.85
update_compare_fieldsFunction · 0.85
merge_samplesFunction · 0.85
parseCommandLineFunction · 0.70
print_helpFunction · 0.70
validate_fieldFunction · 0.70
validateMethod · 0.45

Tested by

no test coverage detected