PLCnext API Documentation  22.9.0.33
Public Member Functions | Static Public Attributes | List of all members
Arp::System::Commons::Configuration::CommandLineOptions Class Reference

Public Member Functions

 CommandLineOptions (void)
 Constructs an CommandLineOptions instance. More...
 
 CommandLineOptions (const CommandLineOptions &arg)=delete
 Copy constructor. More...
 
CommandLineOptionsoperator= (const CommandLineOptions &arg)=delete
 Assignment operator. More...
 
 ~CommandLineOptions (void)=default
 Destructs this instance and frees all resources. More...
 
void AddOption (const String &name, const String &help)
 
template<class T >
void AddOption (const String &name, const String &help)
 
template<class T >
void AddOption (const String &name, const T &defaultValue, const String &help)
 
template<class T >
void AddOptionEnum (const String &name, const String &help)
 
template<class T >
void AddOptionEnum (const String &name, const Enum< T > &defaultValue, const String &help)
 
void ParseArgs (int argc, const char *const argv[])
 
void PrintDescription (std::ostream &os=std::cout)
 
bool ExistsOption (const String &optionName) const
 
template<class T >
GetOptionValue (const String &optionName) const
 
template<class T >
bool TryGetOptionValue (const String &optionName, T &result) const
 
template<class T >
Enum< T > GetOptionValueEnum (const char *optionName)
 
template<class T >
bool TryGetOptionValueEnum (const char *optionName, Enum< T > &value)
 

Static Public Attributes

static const String helpOptionName
 

Constructor & Destructor Documentation

◆ CommandLineOptions() [1/2]

Arp::System::Commons::Configuration::CommandLineOptions::CommandLineOptions ( void  )
inline

Constructs an CommandLineOptions instance.

◆ CommandLineOptions() [2/2]

Arp::System::Commons::Configuration::CommandLineOptions::CommandLineOptions ( const CommandLineOptions arg)
delete

Copy constructor.

◆ ~CommandLineOptions()

Arp::System::Commons::Configuration::CommandLineOptions::~CommandLineOptions ( void  )
default

Destructs this instance and frees all resources.

Member Function Documentation

◆ operator=()

CommandLineOptions& Arp::System::Commons::Configuration::CommandLineOptions::operator= ( const CommandLineOptions arg)
delete

Assignment operator.


The documentation for this class was generated from the following file: