Template Class CValueAssignment#
Defined in File cmdlnparser.h
Inheritance Relationships#
Base Type#
public TBase
Class Documentation#
-
template<class TBase, typename TVarClass, typename TVar = TVarClass>
class CValueAssignment : public TBase# Assignment argument implementation.
- Template Parameters:
TBase – The base class where this argument is derived of. This base class should be derived of CArgValueImpl<> and can implement several overloaded functions.
TVar – The value this argument is used with.
Public Functions
-
inline CValueAssignment(CArgumentDefT<TVarClass> &rArgumentDef)#
Constructor.
- Parameters:
rArgumentDef – [in] Reference to the command line argument definition.
-
inline void Parse(TVarClass &rtArgument, const std::string &rssValue)#
Parse the value from the string (override for assignment values)
This function uses the command line parse flags to determine whether the assignment is using an assignment character and if so checks and removes the character from the value. This function passes through the value assignment to the derived class TBase.
- Parameters:
rtArgument – [in] Reference to the argument.
rssValue – [in] Reference to the string value to be assigned.
-
inline std::string GetArgumentOptionMarkup()#
Get the markup string for the IP address.
- Returns:
std::string Returns the markup string.