A Discrete-Event Network Simulator
API
command-line.h File Reference

ns3::CommandLine declaration. More...

#include <string>
#include <sstream>
#include <vector>
#include "callback.h"
#include "nstime.h"
#include "type-id.h"
+ Include dependency graph for command-line.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns3::CommandLine::CallbackItem
 An argument Item using a Callback to parse the input. More...
 
class  ns3::CommandLine
 Parse command-line arguments. More...
 
class  ns3::CommandLine::Item
 The argument abstract base class. More...
 
class  ns3::CommandLine::StringItem
 Extension of Item for strings. More...
 
class  ns3::CommandLine::UserItem< T >
 An argument Item assigning to POD. More...
 

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 
 ns3::CommandLineHelper
 Helpers for CommandLine to specialize on bool.
 

Functions

std::ostream & ns3::operator<< (std::ostream &os, const CommandLine &cmd)
 Overloaded operator << to print program usage (shortcut for CommandLine::PrintHelper) More...
 
template<typename T >
bool ns3::CommandLineHelper::UserItemParse (const std::string value, T &val)
 Helpers to specialize CommandLine::UserItem::Parse() More...
 
template<>
bool ns3::CommandLineHelper::UserItemParse< bool > (const std::string value, bool &val)
 Specialization of CommandLine::UserItem to bool. More...
 
template<>
bool ns3::CommandLineHelper::UserItemParse< uint8_t > (const std::string value, uint8_t &val)
 Specialization of CommandLine::UserItem to uint8_t to distinguish from char. More...
 
template<typename T >
std::string ns3::CommandLineHelper::GetDefault (const T &val)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 
template<>
std::string ns3::CommandLineHelper::GetDefault< bool > (const bool &val)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 
template<>
std::string ns3::CommandLineHelper::GetDefault< Time > (const Time &val)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 

Detailed Description

ns3::CommandLine declaration.

Definition in file command-line.h.