A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::CommandLine::Item Class Referenceabstract

The argument base class. More...

+ Inheritance diagram for ns3::CommandLine::Item:
+ Collaboration diagram for ns3::CommandLine::Item:

Public Member Functions

virtual ~Item ()
 Destructor. More...
 
virtual std::string GetDefault () const
 
virtual bool HasDefault () const
 
virtual bool Parse (const std::string value)=0
 Parse from a string. More...
 

Public Attributes

std::string m_help
 Argument help string. More...
 
std::string m_name
 Argument label: ---m_name=... More...
 

Detailed Description

The argument base class.

Definition at line 255 of file command-line.h.

Constructor & Destructor Documentation

ns3::CommandLine::Item::~Item ( )
virtual

Destructor.

Definition at line 98 of file command-line.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

std::string ns3::CommandLine::Item::GetDefault ( ) const
virtual
Returns
the default value

Reimplemented in ns3::CommandLine::UserItem< T >.

Definition at line 415 of file command-line.cc.

bool ns3::CommandLine::Item::HasDefault ( ) const
virtual
Returns
true if this item have a default value?

Reimplemented in ns3::CommandLine::UserItem< T >.

Definition at line 409 of file command-line.cc.

virtual bool ns3::CommandLine::Item::Parse ( const std::string  value)
pure virtual

Parse from a string.

Parameters
valuethe string representation
Returns
true if parsing the value succeeded

Implemented in ns3::CommandLine::CallbackItem, and ns3::CommandLine::UserItem< T >.

Member Data Documentation

std::string ns3::CommandLine::Item::m_help

Argument help string.

Definition at line 259 of file command-line.h.

Referenced by ns3::CommandLine::AddValue().

std::string ns3::CommandLine::Item::m_name

Argument label: ---m_name=...

Definition at line 258 of file command-line.h.

Referenced by ns3::CommandLine::AddValue().


The documentation for this class was generated from the following files: