fwoop basis¶
basis
-
class ArgParser¶
Argument parser for command line arguments.
Public Types
Public Functions
-
ArgParser(const char **argv, int argc)¶
Construct a new Arg Parser object.
- Parameters
argv – command line arguments
argc – number of command line arguments
-
std::error_code parse()¶
Attempt to parse the command line arguments that were given on construction.
- Returns
std::error_code
-
template<typename T>
void addNamedArg(const std::string &name, const std::string &flag, const T &defaultVal, const std::string &helpMsg)¶ Add a named argument to parse.
- Template Parameters
T – argument type
- Parameters
name – argument name, only alphanumeric characters and ‘-’ or ‘_’ are allowed
flag – flag, only alphanumeric characters and ‘-’ or ‘_’ are allowed
defaultVal – default value for the argument when not parsed
helpMsg – help message to print for this argument
-
ArgParser(const char **argv, int argc)¶
-
class FileReader¶
This is used to read files.
Public Functions
-
explicit FileReader(const std::string &filename)¶
-
inline ~FileReader()¶
-
int open()¶
-
void close()¶
-
uint8_t *loadFile(uint32_t &length)¶
Public Static Functions
-
static std::string getExtension(const std::string &filename)¶
-
class Iterator¶
-
explicit FileReader(const std::string &filename)¶
-
class Log¶
Public Types
Public Functions
-
Log()¶
-
void setFormat(const std::string &formatStr)¶
-
void debug(const std::string &msg)¶
-
void info(const std::string &msg)¶
-
void warn(const std::string &msg)¶
-
void error(const std::string &msg)¶
-
Log()¶
-
class SocketIO¶