MCPcopy Create free account
hub / github.com/Gecode/gecode / parse

Method parse

contribs/quacode/examples/qdimacs.cpp:85–95  ·  view source on GitHub ↗

Parse options from arguments \a argv (number is \a argc)

Source from the content-addressed store, hash-verified

83 }
84 /// Parse options from arguments \a argv (number is \a argc)
85 void parse(int& argc, char* argv[]) {
86 // Parse regular options
87 Options::parse(argc,argv);
88 // Filename, should be at position 1
89 if (argc == 1) {
90 help();
91 exit(1);
92 }
93 filename = argv[1];
94 argc--;
95 }
96 /// Return true if the strategy must be printed
97 bool printStrategy(void) const {
98 return _printStrategy.value();

Callers 1

mainFunction · 0.45

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected