A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
command-line-example.cc File Reference
#include <iostream>
#include <iomanip>
#include <string>
#include "ns3/core-module.h"
+ Include dependency graph for command-line-example.cc:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 
bool SetCbArg (std::string val)
 

Variables

std::string g_cbArg ="cbArg default"
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 40 of file command-line-example.cc.

References ns3::CommandLine::AddValue(), g_cbArg, ns3::MakeCallback(), ns3::CommandLine::Parse(), SetCbArg(), and ns3::CommandLine::Usage().

+ Here is the call graph for this function:

bool SetCbArg ( std::string  val)

Definition at line 33 of file command-line-example.cc.

References g_cbArg.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation

std::string g_cbArg ="cbArg default"

Definition at line 31 of file command-line-example.cc.

Referenced by main(), and SetCbArg().