Public Member Functions | Private Attributes
icl_core::config::GetoptParameter Class Reference

#include <GetoptParameter.h>

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

List of all members.

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.
icl_core::String help () const
 Get the help text.
bool isPrefixOption () const
 Check if this is a prefix option.
icl_core::String option () const
 Get the long option name.
icl_core::String shortOption () const
 Get the short option name.

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

Check if the option also expects a value.

Definition at line 65 of file GetoptParameter.h.

Get the help text.

Definition at line 67 of file GetoptParameter.h.

Check if this is a prefix option.

Definition at line 70 of file GetoptParameter.h.

Get the long option name.

Definition at line 61 of file GetoptParameter.h.

Get the short option name.

Definition at line 63 of file GetoptParameter.h.


Member Data Documentation

Definition at line 104 of file GetoptParameter.h.

Definition at line 103 of file GetoptParameter.h.

Definition at line 105 of file GetoptParameter.h.

Definition at line 101 of file GetoptParameter.h.

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 Thu Jun 6 2019 20:22:26