A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
anonymous_namespace{command-line-example.cc} Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ SetCbArg()

bool anonymous_namespace{command-line-example.cc}::SetCbArg ( const 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 41 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 31 of file command-line-example.cc.

Referenced by SetCbArg().