ewmscp
..
|
template specialisation for options that are std::chrono::time_point<std::chrono::system_clock> More...
Classes | |
class | baseForContainer |
This class is an intermediate helper class for options that are container-based. More... | |
class | baseForMap |
This class is an intermediate helper class for options that are map-based. More... | |
class | conversionError |
class | NoCfgFileRecursion |
standard option to suppress parsing of config files within config files More... | |
class | optionError |
class | OptionHelp |
special derived class used to give help More... | |
class | OptionReadCfgFile |
special derived class used to read in config files More... | |
class | OptionWriteCfgFile |
special derived class used to write out config files More... | |
class | positional_base |
class | rangeError |
class | sourceFile |
class to remember the file (or cmd line) an option was set from More... | |
class | sourceItem |
class to remember from which line (or item) of a file/line an option was set from More... | |
class | supressed |
special class for options which never have a value setting in cfg files More... | |
class | typed_base |
class | typedRangeError |
Functions | |
template<typename T > | |
void | conCatStr (std::ostringstream &msg, const T &begin) |
template<typename T , typename ... Args> | |
void | conCatStr (std::ostringstream &msg, const T &begin, const Args &... args) |
template<typename ... Args> | |
std::string | conCat (const Args &... args) |
std::chrono::duration< double > | parseNumberAndUnit (std::stringstream &aStream, int *aMonths=nullptr, int *aYears=nullptr) |
std::chrono::system_clock::time_point | fParseTimePointString (const std::string &aString) |
template<class Rep , class Period > | |
void | parseDurationString (std::chrono::duration< Rep, Period > &aDuration, const std::string &aString, int *aMonths=nullptr, int *aYears=nullptr) |
parse a string into a std::chrono::duration, if given set the years and months separately More... | |
bool | fParseStreamToBrokenDownTime (std::istream &aStream, std::tm *aBrokenDownTime, double &aFractional, std::string &timezone) |
Variables | |
static single< bool > | gOptionDebugOptions ('\0', "debugOptions", "give debug output to option parsing") |
standard option for producing debug output about the options More... | |
static single< bool > | gOptionNoCfgFiles ('\0', "noCfgFiles", "do not read the default config files, must be FIRST option") |
standard option to suppress parsing of config files More... | |
static NoCfgFileRecursion | gNoCfgFileRecursion |
static OptionHelp | gHelp |
static OptionWriteCfgFile | gWriteCfgFile |
static OptionReadCfgFile< false > | gReadCfgFile ("readCfgFile", "read a config file") |
static OptionReadCfgFile< true > | gReadCfgFileIfThere ("readCfgFileIfThere", "read a config file if it's there") |
template specialisation for options that are std::chrono::time_point<std::chrono::system_clock>
special namespace for classes and functions that are meant for internal use only
|
inline |
Definition at line 338 of file Options.h.
References conCatStr().
Referenced by options::base::base(), options::base::fHandleOption(), options::parser::fParse(), options::parser::fReadCfgFile(), and options::map< T >::fSetMe().
void options::internal::conCatStr | ( | std::ostringstream & | msg, |
const T & | begin | ||
) |
Definition at line 327 of file Options.h.
Referenced by conCat(), and conCatStr().
|
inline |
Definition at line 330 of file Options.h.
References conCatStr().
bool options::internal::fParseStreamToBrokenDownTime | ( | std::istream & | aStream, |
std::tm * | aBrokenDownTime, | ||
double & | aFractional, | ||
std::string & | timezone | ||
) |
Definition at line 146 of file OptionsChrono.cpp.
Referenced by fParseTimePointString().
std::chrono::system_clock::time_point options::internal::fParseTimePointString | ( | const std::string & | aString | ) |
Definition at line 183 of file OptionsChrono.cpp.
References options::parser::fComplainAndLeave(), options::parser::fGetErrorStream(), options::parser::fGetInstance(), fParseStreamToBrokenDownTime(), parseDurationString(), and statCollector::timePoint().
Referenced by options::single< std::chrono::system_clock::time_point >::fAddDefaultFromStream(), options::single< std::chrono::system_clock::time_point >::fSetMe(), options::escapedIO::operator>>(), parseDurationString(), and options::single< std::chrono::system_clock::time_point >::single().
void options::internal::parseDurationString | ( | std::chrono::duration< Rep, Period > & | aDuration, |
const std::string & | aString, | ||
int * | aMonths = nullptr , |
||
int * | aYears = nullptr |
||
) |
parse a string into a std::chrono::duration, if given set the years and months separately
Definition at line 22 of file OptionsChrono.h.
References fParseTimePointString(), and parseNumberAndUnit().
Referenced by options::single< std::chrono::duration< Rep, Period > >::fAddDefaultFromStream(), fParseTimePointString(), options::single< std::chrono::duration< Rep, Period > >::fSetMe(), and options::escapedIO::operator>>().
std::chrono::duration< double > options::internal::parseNumberAndUnit | ( | std::stringstream & | aStream, |
int * | aMonths = nullptr , |
||
int * | aYears = nullptr |
||
) |
Definition at line 14 of file OptionsChrono.cpp.
References options::parser::fComplainAndLeave(), options::parser::fGetErrorStream(), and options::parser::fGetInstance().
Referenced by parseDurationString().
|
static |
Definition at line 949 of file Options.cpp.
|
static |
Definition at line 643 of file Options.cpp.
Referenced by options::parser::fReadCfgFile(), options::internal::OptionReadCfgFile< mayBeMissing >::fSetMe(), and options::internal::OptionReadCfgFile< mayBeMissing >::fWriteCfgLines().
|
static |
standard option for producing debug output about the options
Referenced by options::parser::fParse().
|
static |
standard option to suppress parsing of config files
Referenced by options::parser::fParse().
|
static |
|
static |
|
static |
Definition at line 966 of file Options.cpp.