#include <Options.h>
Definition at line 310 of file Options.h.
◆ StringOption()
| Gluco2::StringOption::StringOption |
( |
const char * | c, |
|
|
const char * | n, |
|
|
const char * | d, |
|
|
const char * | def = NULL ) |
|
inline |
Definition at line 314 of file Options.h.
315 :
Option(n, d, c,
"<string>"), value(def) {}
Option(const char *name_, const char *desc_, const char *cate_, const char *type_)
◆ help()
| virtual void Gluco2::StringOption::help |
( |
bool | verbose = false | ) |
|
|
inlinevirtual |
Implements Gluco2::Option.
Definition at line 331 of file Options.h.
331 {
333 if (verbose){
335 fprintf(stderr, "\n");
336 }
337 }
◆ operator const char *()
| Gluco2::StringOption::operator const char * |
( |
void | | ) |
const |
|
inline |
◆ operator const char *&()
| Gluco2::StringOption::operator const char *& |
( |
void | | ) |
|
|
inline |
◆ operator=()
Definition at line 319 of file Options.h.
319{ value = x; return *this; }
◆ parse()
| virtual bool Gluco2::StringOption::parse |
( |
const char * | str | ) |
|
|
inlinevirtual |
Implements Gluco2::Option.
Definition at line 321 of file Options.h.
321 {
322 const char* span = str;
323
324 if (!match(span,
"-") || !match(span,
name) || !match(span,
"="))
325 return false;
326
327 value = span;
328 return true;
329 }
The documentation for this class was generated from the following file: