A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
cognitive-example.cc
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 
3 #include "ns3/core-module.h"
4 
5 using namespace ns3;
6 
7 
8 int
9 main (int argc, char *argv[])
10 {
11  bool verbose = true;
12 
13  CommandLine cmd;
14  cmd.AddValue ("verbose", "Tell application to log if true", verbose);
15 
16  cmd.Parse (argc,argv);
17 
18  /* ... */
19 
20  Simulator::Run ();
22  return 0;
23 }
24 
25 
static void Run(void)
Definition: simulator.cc:157
parse command-line argumentsInstances of this class can be used to parse command-line arguments: user...
Definition: command-line.h:50
static void Destroy(void)
Definition: simulator.cc:121
void AddValue(const std::string &name, const std::string &help, T &value)
Definition: command-line.h:134
void Parse(int argc, char *argv[]) const
Definition: command-line.cc:84