A parameter storing a wide string value.
More...
#include <param.h>
|
| WStringParam (const std::string &_argStr, bool _isRequired) |
|
virtual std::string | valToString () const |
| Returns the string representation of the parameter's value. More...
|
|
virtual std::string | type () const |
| Returns the string representation of the parameter's type. More...
|
|
virtual bool | isSet () const |
| Returns true if the parameter is filled, false otherwise. More...
|
|
virtual bool | parse (const wchar_t *arg) |
| Parses the parameter from the given wide string. More...
|
|
virtual bool | parse (const char *arg) |
| Parses the parameter from the given string. More...
|
|
size_t | copyToCStr (wchar_t *buf, size_t buf_len) const |
| Copy the stored string value into an external buffer of a given length. More...
|
|
| Param (const std::string &_argStr, bool _isRequired) |
| A constructor of a parameter. More...
|
|
| Param (const std::string &_argStr, const std::string &_typeDescStr, bool _isRequired) |
| A constructor of a parameter. More...
|
|
void | setActive (bool _active) |
|
virtual bool | isActive () const |
| Returns true if the parameter is active, false otherwise. More...
|
|
virtual std::string | info (bool isExtended) const |
|
void | printInColor (int color) |
| Prints the parameter using the given color. Appends the parameter switch to the name. More...
|
|
|
void | printDesc (bool isExtended=true) const |
| Prints a formatted description of the parameter, including its unique name, type, and the info. More...
|
|
virtual bool | isNameSimilar (const std::string &filter) |
| Checks if the param name is similar to the given filter. More...
|
|
virtual bool | isKeywordInType (const std::string &keyword) |
| Checks if the parameter type contains the keyword. More...
|
|
virtual bool | isKeywordInDescription (const std::string &keyword) |
| Checks if the description contains the keyword. More...
|
|
virtual std::string | extendedInfo () const |
| Extended information. More...
|
|
std::string | argStr |
| a unique name of the parameter More...
|
|
std::string | typeDescStr |
| a description of the type of the parameter: what type of values are allowed More...
|
|
std::string | m_info |
| a basic information about the the parameter's purpose More...
|
|
std::string | m_extInfo |
| an extended information about the the parameter's purpose More...
|
|
bool | isRequired |
| a flag indicating if this parameter is required More...
|
|
bool | requiredArg |
| a flag indicating if this parameter needs to be followed by a value More...
|
|
bool | active |
| a flag indicating if this parameter is available More...
|
|
A parameter storing a wide string value.
Definition at line 317 of file param.h.
◆ WStringParam()
paramkit::WStringParam::WStringParam |
( |
const std::string & |
_argStr, |
|
|
bool |
_isRequired |
|
) |
| |
|
inline |
◆ copyToCStr()
size_t paramkit::WStringParam::copyToCStr |
( |
wchar_t * |
buf, |
|
|
size_t |
buf_len |
|
) |
| const |
|
inline |
Copy the stored string value into an external buffer of a given length.
Definition at line 362 of file param.h.
◆ isSet()
virtual bool paramkit::WStringParam::isSet |
( |
| ) |
const |
|
inlinevirtual |
Returns true if the parameter is filled, false otherwise.
Implements paramkit::Param.
Definition at line 337 of file param.h.
◆ parse() [1/2]
virtual bool paramkit::WStringParam::parse |
( |
const char * |
arg | ) |
|
|
inlinevirtual |
◆ parse() [2/2]
virtual bool paramkit::WStringParam::parse |
( |
const wchar_t * |
arg | ) |
|
|
inlinevirtual |
◆ type()
virtual std::string paramkit::WStringParam::type |
( |
| ) |
const |
|
inlinevirtual |
Returns the string representation of the parameter's type.
Implements paramkit::Param.
Definition at line 332 of file param.h.
◆ valToString()
virtual std::string paramkit::WStringParam::valToString |
( |
| ) |
const |
|
inlinevirtual |
Returns the string representation of the parameter's value.
Implements paramkit::Param.
Definition at line 326 of file param.h.
◆ value
std::wstring paramkit::WStringParam::value |
The documentation for this class was generated from the following file: