Public Member Functions | Private Attributes | List of all members
icl_core::config::GetoptParameter Class Reference

#include <GetoptParameter.h>

Inheritance diagram for icl_core::config::GetoptParameter:
Inheritance graph
[legend]

Public Member Functions

 GetoptParameter (const icl_core::String &option, const icl_core::String &short_option, const icl_core::String &help, bool is_prefix=false)
 
bool hasValue () const
 Check if the option also expects a value. More...
 
icl_core::String help () const
 Get the help text. More...
 
bool isPrefixOption () const
 Check if this is a prefix option. More...
 
icl_core::String option () const
 Get the long option name. More...
 
icl_core::String shortOption () const
 Get the short option name. More...
 

Private Attributes

bool m_has_value
 
icl_core::String m_help
 
bool m_is_prefix
 
icl_core::String m_option
 
icl_core::String m_short_option
 

Detailed Description

Definition at line 39 of file GetoptParameter.h.

Constructor & Destructor Documentation

icl_core::config::GetoptParameter::GetoptParameter ( const icl_core::String option,
const icl_core::String short_option,
const icl_core::String help,
bool  is_prefix = false 
)

Create a new commandline parameter.

Parameters
optionThe long option name of this parameter. If option ends with a colon (":") then the parameter also expects a value.
short_optionThe short option name of this parameter. If this is set to the empty string then no short option is used.
helpThe help text for this parameter.
is_prefixSet to true if this is a prefix option. Prefix Options are options like "-o/asd/asd".
See also
GetoptParameter for details about the syntax of the option parameter.

Definition at line 27 of file GetoptParameter.cpp.

Member Function Documentation

bool icl_core::config::GetoptParameter::hasValue ( ) const
inline

Check if the option also expects a value.

Definition at line 65 of file GetoptParameter.h.

icl_core::String icl_core::config::GetoptParameter::help ( ) const
inline

Get the help text.

Definition at line 67 of file GetoptParameter.h.

bool icl_core::config::GetoptParameter::isPrefixOption ( ) const
inline

Check if this is a prefix option.

Definition at line 70 of file GetoptParameter.h.

icl_core::String icl_core::config::GetoptParameter::option ( ) const
inline

Get the long option name.

Definition at line 61 of file GetoptParameter.h.

icl_core::String icl_core::config::GetoptParameter::shortOption ( ) const
inline

Get the short option name.

Definition at line 63 of file GetoptParameter.h.

Member Data Documentation

bool icl_core::config::GetoptParameter::m_has_value
private

Definition at line 104 of file GetoptParameter.h.

icl_core::String icl_core::config::GetoptParameter::m_help
private

Definition at line 103 of file GetoptParameter.h.

bool icl_core::config::GetoptParameter::m_is_prefix
private

Definition at line 105 of file GetoptParameter.h.

icl_core::String icl_core::config::GetoptParameter::m_option
private

Definition at line 101 of file GetoptParameter.h.

icl_core::String icl_core::config::GetoptParameter::m_short_option
private

Definition at line 102 of file GetoptParameter.h.


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


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:59