Debian Codegraph @

src/argProcessor.cpp

raw symbols SCIP
1 #cxx . . $ `<file>/src/argProcessor.cpp`/include "argProcessor.hpp"cxx . . $ `<file>/src/argProcessor.hpp`/
2 #include <stdlib.h>
3 // #include <cstdlib>
4
5 ArgProcessorcxx . . $ ArgProcessor#::ArgProcessorcxx . . $ ArgProcessor#ArgProcessor(c759356ac01a31e7).(int argc, char* argv[]) {
6
7 for (int i=1; i < argc; i++) {
8 char* arg = argv[i];
9 stringcxx . . $ std/string# myArgcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d). (arg);
10 if (arg[0] == '-') {
11
12 argSetcxx . . $ ArgProcessor#argSet.[cxx . . $ std/map#`operator[]`(bbd415b616967878).myArg] = true;
13
14 // see if next argument is another arg or value:
15 if (i != argc-1) {
16 // value:
17 stringcxx . . $ std/string# nextArgcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d). (argv[i+1]);
18 argValcxx . . $ ArgProcessor#argVal.[cxx . . $ std/map#`operator[]`(bbd415b616967878).myArg] =cxx . . $ std/__cxx11/basic_string#`operator=`(c0b47be1fddc0e75). nextArg;
19 }
20 }
21 }
22
23 }
24
25
26 bool ArgProcessorcxx . . $ ArgProcessor#::isArgSetcxx . . $ ArgProcessor#isArgSet(c9120223c4466434).(stringcxx . . $ std/string# arg) {
27
28 mapcxx . . $ std/map#<string,bool>::const_iteratorcxx . . $ std/map#const_iterator# itcxx . . $ std/_Rb_tree_const_iterator#_Rb_tree_const_iterator(ced63f7c635d850d).;
29
30 it =cxx . . $ std/_Rb_tree_const_iterator#`operator=`(2c5d4fd5078dd96). argSetcxx . . $ std/_Rb_tree_const_iterator#_Rb_tree_const_iterator(dc529b7882ffd73b)..findcxx . . $ std/map#find(36f8d56706583706).(arg);
31 if (it !=cxx . . $ std/`operator!=`(a84eb84a7a5e8237). argSetcxx . . $ std/_Rb_tree_const_iterator#_Rb_tree_const_iterator(dc529b7882ffd73b)..endcxx . . $ std/map#end(7e4de33083b6e738).()) {
32 return(true);
33 }
34 else {
35 return(false);
36 }
37 }
38
39 int ArgProcessorcxx . . $ ArgProcessor#::getIntValcxx . . $ ArgProcessor#getIntVal(89800cbf2a9b278f).(stringcxx . . $ std/string# arg) {
40
41 return(atoicxx . . $ atoi(f5ecf3191ed0cd93).(argValcxx . . $ ArgProcessor#argVal.[cxx . . $ std/map#`operator[]`(bbd415b616967878).arg].c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()));
42
43 }
44
45 long ArgProcessorcxx . . $ ArgProcessor#::getLongValcxx . . $ ArgProcessor#getLongVal(877535c4d6a1d0b5).(stringcxx . . $ std/string# arg) {
46 return(atolcxx . . $ atol(fd364382987d21ca).(argValcxx . . $ ArgProcessor#argVal.[cxx . . $ std/map#`operator[]`(bbd415b616967878).arg].c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()));
47 }
48
49
50 float ArgProcessorcxx . . $ ArgProcessor#::getFloatValcxx . . $ ArgProcessor#getFloatVal(3f1e31c5aa83c595).(stringcxx . . $ std/string# arg) {
51
52 return(atofcxx . . $ atof(9b0361fcbc284e4f).(argValcxx . . $ ArgProcessor#argVal.[cxx . . $ std/map#`operator[]`(bbd415b616967878).arg].c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()));
53 }
54
55
56 stringcxx . . $ std/string# ArgProcessorcxx . . $ ArgProcessor#::getStringValcxx . . $ ArgProcessor#getStringVal(265576c0e07c2ac8).(stringcxx . . $ std/string# arg) {
57
58 return(cxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).argValcxx . . $ ArgProcessor#argVal.[cxx . . $ std/map#`operator[]`(bbd415b616967878).arg]);
59 }
60
61