Browse Source

document how a GlobalValue can be set from the command-line and with an environment variable

ndnSIM-v1
Mathieu Lacage 16 years ago
parent
commit
2cb7749057
  1. 8
      src/core/global-value.h

8
src/core/global-value.h

@ -35,6 +35,14 @@ namespace ns3 {
*
* Instances of this class are expected to be allocated as static
* global variables and should be used to store configurable global state.
* GlobalValues can be set directly by calling ns3::GlobalValue::SetValue
* but they can also be set through the NS_GLOBAL_VALUE environment variable.
* For example, NS_GLOBAL_VALUE='Name=Value;OtherName=OtherValue;' would set
* global values Name and OtherName to Value and OtherValue respectively.
*
* Users of the ns3::CommandLine class also get the ability to set global
* values through commandline arguments to their program: --Name=Value will
* set global value Name to Value.
*/
class GlobalValue
{

Loading…
Cancel
Save