RADLib
RADical C++ application framework
RADCLI Namespace Reference

Classes

struct  Option
 One command-line option definition. More...
 
class  ParseResult
 Parsed command-line result. More...
 
class  CommandLineParser
 Small command-line parser for RADLib tools and examples. More...
 

Functions

std::optional< std::string > environmentVariable (const std::string &name)
 Returns an environment variable value when present. More...
 
bool setEnvironmentVariable (const std::string &name, const std::string &value, bool overwrite=true)
 Sets or unsets an environment variable. More...
 
std::string executablePath ()
 Returns the current executable path when available. More...
 
std::string currentUserName ()
 Returns the current username when available. More...
 
std::string radlibVersionString ()
 Returns the RADLib version string. More...
 

Function Documentation

◆ currentUserName()

std::string RADCLI::currentUserName ( )

Returns the current username when available.

◆ environmentVariable()

std::optional<std::string> RADCLI::environmentVariable ( const std::string &  name)

Returns an environment variable value when present.

◆ executablePath()

std::string RADCLI::executablePath ( )

Returns the current executable path when available.

◆ radlibVersionString()

std::string RADCLI::radlibVersionString ( )

Returns the RADLib version string.

◆ setEnvironmentVariable()

bool RADCLI::setEnvironmentVariable ( const std::string &  name,
const std::string &  value,
bool  overwrite = true 
)

Sets or unsets an environment variable.