Example program illustrating use of ns3::CommandLine. More...
#include "ns3/core-module.h"
#include <iomanip>
#include <iostream>
#include <string>
Go to the source code of this file.
Namespaces | |
anonymous_namespace{command-line-example.cc} | |
Macros | |
#define | DefaultFinal(label, defaultValue, finalValue) |
Print a row containing the name, the default and the final values of an argument. More... | |
Functions | |
bool | anonymous_namespace{command-line-example.cc}::SetCbArg (const std::string &val) |
Function to illustrate command line arguments handled by a Callback function. More... | |
Variables | |
std::string | anonymous_namespace{command-line-example.cc}::g_cbArg = "cbArg default" |
Global variable to illustrate command line arguments handled by a Callback function. More... | |
Example program illustrating use of ns3::CommandLine.
Definition in file command-line-example.cc.
#define DefaultFinal | ( | label, | |
defaultValue, | |||
finalValue | |||
) |
Print a row containing the name, the default and the final values of an argument.
[in] | label | The argument label. |
[in] | defaultValue | The default value of the argument. |
[in] | finalValue | The final value of the argument. |
Definition at line 69 of file command-line-example.cc.