Template Class CContainerArgValue#
Defined in File cmdlnparser.h
Inheritance Relationships#
Base Type#
public TBase
Class Documentation#
-
template<class TContainer, class TBase, typename TVar>
class CContainerArgValue : public TBase# Container argument implementation (used with std::vector, std::list and sdv::sequence).
Remark
This class can only be used with an assignment argument CValueAssignment<>.
- Template Parameters:
TContainer – The container type to use with this argument being among others std::vector, std::list and sdv::sequence.
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 CContainerArgValue(CArgumentDefT<TContainer> &rArgumentDef)#
Constructor.
- Parameters:
rArgumentDef – [in] Reference to the command line argument definition.
-
inline void Parse(TContainer &rvectArgument, const std::string &rssValue)#
Parse the value from the string (override for assignment values)
- Parameters:
rvectArgument – [in] Reference to the argument container.
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.
-
inline std::string GetArgumentValueString(const TContainer &rvectArgument)#
Get the value of the variable.
- Parameters:
rvectArgument – [in] Reference to the argument container.
- Returns:
std::string Returns the value of the variable.
-
inline bool MultiArgument()#
Allow multiple assignments?
Remark
Using vectors, multiple argument assignments are supported.
- Returns:
bool Returns ‘true’ when multiple assignments are allowed; otherwise ‘false’.