A Discrete-Event Network Simulator
API
ns3::CommandLine::CharStarItem Class Reference

Extension of Item for char*. More...

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

Public Member Functions

std::string GetDefault () const override
 
bool HasDefault () const override
 
bool Parse (const std::string &value) const override
 Parse from a string. More...
 
- Public Member Functions inherited from ns3::CommandLine::Item
virtual ~Item ()
 Destructor. More...
 

Public Attributes

char * m_buffer
 The buffer to write in to. More...
 
std::string m_default
 The default value. More...
 
std::size_t m_size
 The size of the buffer, including terminating null. More...
 
- Public Attributes inherited from ns3::CommandLine::Item
std::string m_help
 Argument help string. More...
 
std::string m_name
 Argument label: --m_name=... More...
 

Detailed Description

Extension of Item for char*.

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

Member Function Documentation

◆ GetDefault()

std::string ns3::CommandLine::CharStarItem::GetDefault ( ) const
overridevirtual
Returns
The default value

Implements ns3::CommandLine::Item.

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

◆ HasDefault()

bool ns3::CommandLine::CharStarItem::HasDefault ( ) const
overridevirtual
Returns
true if this item has a default value.

Reimplemented from ns3::CommandLine::Item.

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

◆ Parse()

bool ns3::CommandLine::CharStarItem::Parse ( const std::string &  value) const
overridevirtual

Parse from a string.

Parameters
[in]valueThe string representation
Returns
true if parsing the value succeeded

Implements ns3::CommandLine::Item.

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

Member Data Documentation

◆ m_buffer

char* ns3::CommandLine::CharStarItem::m_buffer

The buffer to write in to.

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

◆ m_default

std::string ns3::CommandLine::CharStarItem::m_default

The default value.

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

◆ m_size

std::size_t ns3::CommandLine::CharStarItem::m_size

The size of the buffer, including terminating null.

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


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