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

ns3::CommandLine declaration. More...

#include "callback.h"
#include "nstime.h"
#include "type-id.h"
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
+ 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::CharStarItem
 Extension of Item for char*. 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 extra non-options, stored as 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 UserItem.
 

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 &dest)
 Helpers to specialize CommandLine::UserItem::Parse() More...
 
template<>
bool ns3::CommandLineHelper::UserItemParse< bool > (const std::string &value, bool &dest)
 Specialization of CommandLine::UserItem::Parse() to bool. More...
 
template<>
bool ns3::CommandLineHelper::UserItemParse< uint8_t > (const std::string &value, uint8_t &dest)
 Specialization of CommandLine::UserItem::Parse() to uint8_t to distinguish from char. More...
 
template<typename T >
std::string ns3::CommandLineHelper::GetDefault (const std::string &defaultValue)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 
template<>
std::string ns3::CommandLineHelper::GetDefault< bool > (const std::string &defaultValue)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 
template<>
std::string ns3::CommandLineHelper::GetDefault< Time > (const std::string &defaultValue)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 

Detailed Description

ns3::CommandLine declaration.

Definition in file command-line.h.