#include <aurostd_xoption.h>
Public Member Functions | |
xoption () | |
xoption (const xoption &b) | |
~xoption () | |
const xoption & | operator= (const xoption &b) |
void | clear () |
void | options2entry (const std::string &, const std::string &, int=aurostd_xoptionONOFF, const std::string &xscheme_DEFAULT="") |
void | scheme2scheme (char, const std::string &) |
void | scheme2scheme (const std::string &, const std::string &) |
bool | isscheme (const std::string &) const |
uint | opscheme (const std::string &, bool) |
uint | push (const std::string &) |
uint | pop (const std::string &) |
bool | flag (const std::string &, bool) |
bool | flag (const std::string &) const |
bool | flag () const |
bool | isdefined (const std::string &) const |
uint | opattachedscheme (const std::string &, const std::string &, bool) |
uint | addattachedscheme (const std::string &scheme, const std::string &attached, bool flag) |
uint | push_attached (const std::string &scheme, const std::string &attached) |
uint | pop_attached (const std::string &check) |
std::string | getattachedscheme (const std::string &scheme) const |
template<class utype> | |
utype | getattachedutype (const std::string &scheme) const |
template<class utype> | |
utype | getattachedutype (const string &xscheme) const |
bool | args2addattachedscheme (std::vector< std::string > &argv, const std::string scheme, const std::string &_s_search, std::string string_default) |
bool | args2addattachedscheme (std::vector< std::string > &argv, std::vector< std::string > &cmds, const std::string scheme, const std::string &_s_search, std::string string_default) |
bool | args2addattachedscheme (std::vector< std::string > &argv, const std::string scheme, const std::string &_s_search, const char *string_default) |
bool | args2addattachedscheme (std::vector< std::string > &argv, std::vector< std::string > &cmds, const std::string scheme, const std::string &_s_search, const char *string_default) |
template<class utype> | |
bool | args2addattachedscheme (std::vector< std::string > &argv, const std::string scheme, const std::string &_s_search, utype utype_default) |
template<class utype> | |
bool | args2addattachedscheme (std::vector< std::string > &argv, std::vector< std::string > &cmds, const std::string scheme, const std::string &_s_search, utype utype_default) |
template<class utype> | |
bool | args2addattachedscheme (vector< string > &argv, const string xscheme, const string &_s_search, utype utype_default) |
template<class utype> | |
bool | args2addattachedscheme (vector< string > &argv, vector< string > &cmds, const string xscheme, const string &_s_search, utype utype_default) |
bool | refresh () |
Public Attributes | |
std::string | keyword |
bool | isentry |
std::string | content_string |
double | content_double |
int | content_int |
uint | content_uint |
bool | option |
bool | option_default |
std::string | xscheme |
std::vector< std::string > | vxscheme |
std::vector< std::string > | vxsghost |
bool | preserved |
Private Member Functions | |
void | free () |
void | copy (const xoption &b) |
Friends | |
std::ostream & | operator<< (std::ostream &oss, const xoption &a) |
Definition at line 25 of file aurostd_xoption.h.
aurostd::xoption::xoption | ( | ) |
Definition at line 35 of file aurostd_xoption.cpp.
aurostd::xoption::xoption | ( | const xoption & | b | ) |
Definition at line 83 of file aurostd_xoption.cpp.
aurostd::xoption::~xoption | ( | ) |
Definition at line 40 of file aurostd_xoption.cpp.
Definition at line 90 of file aurostd_xoption.cpp.
void aurostd::xoption::clear | ( | ) |
Definition at line 105 of file aurostd_xoption.cpp.
void aurostd::xoption::options2entry | ( | const std::string & | , |
const std::string & | , | ||
int | = aurostd_xoptionONOFF, | ||
const std::string & | xscheme_DEFAULT = "" ) |
Definition at line 113 of file aurostd_xoption.cpp.
void aurostd::xoption::scheme2scheme | ( | char | , |
const std::string & | ) |
void aurostd::xoption::scheme2scheme | ( | const std::string & | , |
const std::string & | ) |
|
nodiscard |
Definition at line 461 of file aurostd_xoption.cpp.
uint aurostd::xoption::opscheme | ( | const std::string & | , |
bool | ) |
Definition at line 521 of file aurostd_xoption.cpp.
uint aurostd::xoption::push | ( | const std::string & | ) |
Definition at line 514 of file aurostd_xoption.cpp.
uint aurostd::xoption::pop | ( | const std::string & | ) |
Definition at line 517 of file aurostd_xoption.cpp.
bool aurostd::xoption::flag | ( | const std::string & | , |
bool | ) |
|
nodiscard |
|
nodiscard |
Definition at line 585 of file aurostd_xoption.cpp.
|
nodiscard |
Definition at line 595 of file aurostd_xoption.cpp.
uint aurostd::xoption::opattachedscheme | ( | const std::string & | , |
const std::string & | , | ||
bool | ) |
Definition at line 636 of file aurostd_xoption.cpp.
uint aurostd::xoption::addattachedscheme | ( | const std::string & | scheme, |
const std::string & | attached, | ||
bool | flag ) |
Definition at line 676 of file aurostd_xoption.cpp.
uint aurostd::xoption::push_attached | ( | const std::string & | scheme, |
const std::string & | attached ) |
Definition at line 683 of file aurostd_xoption.cpp.
uint aurostd::xoption::pop_attached | ( | const std::string & | check | ) |
Definition at line 687 of file aurostd_xoption.cpp.
|
nodiscard |
Definition at line 613 of file aurostd_xoption.cpp.
|
nodiscard |
utype aurostd::xoption::getattachedutype | ( | const string & | xscheme | ) | const |
Definition at line 628 of file aurostd_xoption.cpp.
bool aurostd::xoption::args2addattachedscheme | ( | std::vector< std::string > & | argv, |
const std::string | scheme, | ||
const std::string & | _s_search, | ||
std::string | string_default ) |
bool aurostd::xoption::args2addattachedscheme | ( | std::vector< std::string > & | argv, |
std::vector< std::string > & | cmds, | ||
const std::string | scheme, | ||
const std::string & | _s_search, | ||
std::string | string_default ) |
bool aurostd::xoption::args2addattachedscheme | ( | std::vector< std::string > & | argv, |
const std::string | scheme, | ||
const std::string & | _s_search, | ||
const char * | string_default ) |
bool aurostd::xoption::args2addattachedscheme | ( | std::vector< std::string > & | argv, |
std::vector< std::string > & | cmds, | ||
const std::string | scheme, | ||
const std::string & | _s_search, | ||
const char * | string_default ) |
bool aurostd::xoption::args2addattachedscheme | ( | std::vector< std::string > & | argv, |
const std::string | scheme, | ||
const std::string & | _s_search, | ||
utype | utype_default ) |
bool aurostd::xoption::args2addattachedscheme | ( | std::vector< std::string > & | argv, |
std::vector< std::string > & | cmds, | ||
const std::string | scheme, | ||
const std::string & | _s_search, | ||
utype | utype_default ) |
bool aurostd::xoption::args2addattachedscheme | ( | vector< string > & | argv, |
const string | xscheme, | ||
const string & | _s_search, | ||
utype | utype_default ) |
Definition at line 728 of file aurostd_xoption.cpp.
bool aurostd::xoption::args2addattachedscheme | ( | vector< string > & | argv, |
vector< string > & | cmds, | ||
const string | xscheme, | ||
const string & | _s_search, | ||
utype | utype_default ) |
Definition at line 732 of file aurostd_xoption.cpp.
bool aurostd::xoption::refresh | ( | ) |
Definition at line 500 of file aurostd_xoption.cpp.
|
private |
Definition at line 45 of file aurostd_xoption.cpp.
|
private |
Definition at line 61 of file aurostd_xoption.cpp.
|
friend |
Definition at line 98 of file aurostd_xoption.cpp.
std::string aurostd::xoption::keyword |
Definition at line 35 of file aurostd_xoption.h.
bool aurostd::xoption::isentry |
Definition at line 36 of file aurostd_xoption.h.
std::string aurostd::xoption::content_string |
Definition at line 37 of file aurostd_xoption.h.
double aurostd::xoption::content_double |
Definition at line 38 of file aurostd_xoption.h.
int aurostd::xoption::content_int |
Definition at line 39 of file aurostd_xoption.h.
uint aurostd::xoption::content_uint |
Definition at line 40 of file aurostd_xoption.h.
bool aurostd::xoption::option |
Definition at line 41 of file aurostd_xoption.h.
bool aurostd::xoption::option_default |
Definition at line 42 of file aurostd_xoption.h.
std::string aurostd::xoption::xscheme |
Definition at line 43 of file aurostd_xoption.h.
std::vector<std::string> aurostd::xoption::vxscheme |
Definition at line 44 of file aurostd_xoption.h.
std::vector<std::string> aurostd::xoption::vxsghost |
Definition at line 45 of file aurostd_xoption.h.
bool aurostd::xoption::preserved |
Definition at line 46 of file aurostd_xoption.h.