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

Example program illustrating use of ns3::CommandLine. More...

#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

bool SetCbArg (std::string val)
 Function to illustrate command line arguments handled by a Callback function. More...
 

Variables

std::string g_cbArg = "cbArg default"
 Global variable to illustrate command line arguments handled by a Callback function. More...
 

Detailed Description

Example program illustrating use of ns3::CommandLine.

Definition in file command-line-example.cc.

Function Documentation

bool SetCbArg ( std::string  val)

Function to illustrate command line arguments handled by a Callback function.

Parameters
[in]valNew value for g_cbArg.
Returns
true.

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

References g_cbArg.

Variable Documentation

std::string g_cbArg = "cbArg default"

Global variable to illustrate command line arguments handled by a Callback function.

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

Referenced by SetCbArg().