52 #ifndef COMMAND_LINE_INCLUDE
53 #define COMMAND_LINE_INCLUDE
103 Option(
char s, std::string l, std::string a, std::string predes,
104 std::string des,
bool rep,
bool req,
typeOpt t,
void *ptr,
bool d)
162 unsigned int count(std::string lopt) {
163 for(
unsigned int i=0; i<
options.size(); i++) {
165 return options[i].values.size();
197 void Add(
char s, std::string l, std::string a,
bool rep,
bool req,
198 bool* ptr, std::string predes, std::string des,
bool doc=
true)
205 void Add(
char s, std::string l, std::string a,
bool rep,
bool req,
206 int* ptr, std::string predes, std::string des,
bool doc=
true)
208 Option opt(s,l,a,predes,des,rep,req,
typeInt,(
void *)ptr,doc);
213 void Add(
char s, std::string l, std::string a,
bool rep,
bool req,
214 std::vector<int>* ptr, std::string predes, std::string des,
bool doc=
true)
221 void Add(
char s, std::string l, std::string a,
bool rep,
bool req,
222 double* ptr, std::string predes, std::string des,
bool doc=
true)
229 void Add(
char s, std::string l, std::string a,
bool rep,
bool req,
230 std::string* ptr, std::string predes, std::string des,
bool doc=
true)
237 void Add(
char s, std::string l, std::string a,
bool rep,
bool req,
238 std::vector<std::string>* ptr, std::string predes, std::string des,
246 void Add(
char s, std::string l, std::string a,
bool rep,
bool req,
249 Option opt(s,l,a,predes,des,rep,req,
typeSat,(
void *)ptr,doc);
254 void Add(
char s, std::string l, std::string a,
bool rep,
bool req,
255 std::vector<gnsstk::RinexSatID>* ptr, std::string predes, std::string des,
267 for(
size_t i=0; i<
options.size(); i++) {
286 for(
size_t i=0; i<
options.size(); i++) {
318 std::string& Usage, std::string& Errors, std::vector<std::string>& Unrec);
340 std::string& Errors);
344 void Parse(std::vector<std::string>& Args, std::string& Errors,
345 std::vector<std::string>& Unrecog);
353 void Postprocess(std::string& Errors, std::vector<std::string>& Unrecog);
358 #endif // COMMAND_LINE_INCLUDE