An argument Item using a Callback to parse the input. More...
Inheritance diagram for ns3::CommandLine::CallbackItem:
Collaboration diagram for ns3::CommandLine::CallbackItem:Public Member Functions | |
| std::string | GetDefault () const override |
| bool | HasDefault () const override |
| bool | Parse (const std::string &value) const override |
| Parse from a string. | |
Public Member Functions inherited from ns3::CommandLine::Item | |
| virtual | ~Item () |
| Destructor. | |
| virtual std::string | GetDefault () const =0 |
| virtual bool | HasDefault () const |
| virtual bool | Parse (const std::string &value) const =0 |
| Parse from a string. | |
Public Attributes | |
| ns3::Callback< bool, const std::string & > | m_callback |
| The Callback. | |
| std::string | m_default |
| The default value, as a string, if it exists. | |
Public Attributes inherited from ns3::CommandLine::Item | |
| std::string | m_help |
| Argument help string. | |
| std::string | m_name |
Argument label: --m_name=... | |
An argument Item using a Callback to parse the input.
Definition at line 528 of file command-line.h.
|
overridevirtual |
Implements ns3::CommandLine::Item.
Definition at line 732 of file command-line.cc.
|
overridevirtual |
true if this item has a default value. Reimplemented from ns3::CommandLine::Item.
Definition at line 726 of file command-line.cc.
|
overridevirtual |
Parse from a string.
| [in] | value | The string representation |
true if parsing the value succeeded Implements ns3::CommandLine::Item.
Definition at line 738 of file command-line.cc.
References NS_LOG_DEBUG, and NS_LOG_FUNCTION.
| ns3::Callback<bool, const std::string&> ns3::CommandLine::CallbackItem::m_callback |
The Callback.
Definition at line 536 of file command-line.h.
| std::string ns3::CommandLine::CallbackItem::m_default |
The default value, as a string, if it exists.
Definition at line 537 of file command-line.h.