An argument Item using a Callback to parse the input. More...
Public Member Functions | |
virtual bool | Parse (const std::string value) |
Parse from a string. More... | |
![]() | |
virtual | ~Item () |
Destructor. More... | |
virtual std::string | GetDefault () const |
virtual bool | HasDefault () const |
Public Attributes | |
Callback< bool, std::string > | m_callback |
The Callback. More... | |
![]() | |
std::string | m_help |
Argument help string. More... | |
std::string | m_name |
Argument label: ---m_name= ... More... | |
An argument Item using a Callback to parse the input.
Definition at line 427 of file command-line.h.
|
virtual |
Parse from a string.
[in] | value | The string representation |
true
if parsing the value succeeded Implements ns3::CommandLine::Item.
Definition at line 532 of file command-line.cc.
References NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Callback<bool, std::string> ns3::CommandLine::CallbackItem::m_callback |
The Callback.
Definition at line 437 of file command-line.h.
Referenced by ns3::CommandLine::AddValue().