tk::StringParser class

StringParser.

Derived classes

class fileconv::CmdLineParser
Command-line parser for FileConv.
class inciter::CmdLineParser
Command-line parser for Inciter.
class meshconv::CmdLineParser
Command-line parser for MeshConv.
class rngtest::CmdLineParser
Command-line parser for RNGTest.
class unittest::CmdLineParser
Command-line parser for UnitTest.
class walker::CmdLineParser
CmdLineParser : StringParser.

Constructors, destructors, conversion operators

StringParser(const std::string& string) protected explicit
StringParser(int argc, char** argv) protected explicit
Constructor from C-style command-line argument string.

Protected functions

void diagnostics(const Print& print, const std::vector<std::string>& messages)
Echo errors and warnings accumulated during parsing.

Protected variables

std::string m_string
String to parse.

Function documentation

tk::StringParser::StringParser(const std::string& string) explicit protected

Parameters
string in String to be parsed

Constructor from C++-style std::string

tk::StringParser::StringParser(int argc, char** argv) explicit protected

Constructor from C-style command-line argument string.

Parameters
argc in Number of C-style character arrays in argv
argv in C-style character array of character arrays Convert C-style character array of character arrays to a single std::string substrings separated by spaces. Exception safety: basic guarantee: if an exception is thrown, the stream is in a valid state.

void tk::StringParser::diagnostics(const Print& print, const std::vector<std::string>& messages) protected

Echo errors and warnings accumulated during parsing.

Parameters
print in Pretty printer
messages in Vector of strings of errors and warnings