A Discrete-Event Network Simulator
API
Functions | Variables
anonymous_namespace{command-line-example.cc} Namespace Reference

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...
 

Function Documentation

◆ SetCbArg()

bool anonymous_namespace{command-line-example.cc}::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 51 of file command-line-example.cc.

References g_cbArg.

Variable Documentation

◆ g_cbArg

std::string anonymous_namespace{command-line-example.cc}::g_cbArg = "cbArg default"

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

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

Referenced by SetCbArg().