A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
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
();
21
Simulator::Destroy
();
22
return
0;
23
}
24
25
ns3::Simulator::Run
static void Run(void)
Definition:
simulator.cc:157
ns3::CommandLine
parse command-line argumentsInstances of this class can be used to parse command-line arguments: user...
Definition:
command-line.h:50
ns3::Simulator::Destroy
static void Destroy(void)
Definition:
simulator.cc:121
ns3::CommandLine::AddValue
void AddValue(const std::string &name, const std::string &help, T &value)
Definition:
command-line.h:134
ns3::CommandLine::Parse
void Parse(int argc, char *argv[]) const
Definition:
command-line.cc:84
src
cognitive
examples
cognitive-example.cc
Generated on Sun Mar 16 2014 11:25:01 for ns-3 by
1.8.6