MCPcopy Create free account
hub / github.com/ParAlg/gbbs / commandLine

Class commandLine

gbbs/parse_command_line.h:33–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace gbbs {
32
33struct commandLine {
34 int argc;
35 char** argv;
36 std::string comLine;
37
38 commandLine(int _c, char** _v, std::string _cl);
39 commandLine(int _c, char** _v);
40
41 void badArgument() const;
42
43 // get an argument
44 // i is indexed from the last argument = 0, second to last indexed 1, ..
45 char* getArgument(int i) const;
46
47 // looks for two filenames
48 std::pair<char*, char*> IOFileNames() const;
49
50 std::pair<int, char*> sizeAndFileName() const;
51
52 bool getOption(const std::string& option) const;
53 char* getOptionValue(const std::string& option) const;
54 std::string getOptionValue(
55 const std::string& option, const std::string& defaultValue) const;
56 int getOptionIntValue(const std::string& option, int defaultValue) const;
57 size_t
58 getOptionLongValue(const std::string& option, size_t defaultValue) const;
59 double
60 getOptionDoubleValue(const std::string& option, double defaultValue) const;
61};
62
63} // namespace gbbs

Callers 1

RunEmptyStartingGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected