A Discrete-Event Network Simulator
API
Variables
create-module Namespace Reference

Variables

string DOC_RST_TEMPLATE
 
string EXAMPLE_CC_TEMPLATE
 
string EXAMPLES_WSCRIPT_TEMPLATE
 
string HELPER_CC_TEMPLATE
 
string HELPER_H_TEMPLATE
 
string MODEL_CC_TEMPLATE
 
string MODEL_H_TEMPLATE
 
string TEST_CC_TEMPLATE
 
string WSCRIPT_TEMPLATE
 

Variable Documentation

◆ DOC_RST_TEMPLATE

string create-module.DOC_RST_TEMPLATE

Definition at line 215 of file create-module.py.

◆ EXAMPLE_CC_TEMPLATE

string create-module.EXAMPLE_CC_TEMPLATE
Initial value:
1 = '''/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 
3 #include "ns3/core-module.h"
4 #include "ns3/%(MODULE)s-helper.h"
5 
6 using namespace ns3;
7 
8 
9 int
10 main (int argc, char *argv[])
11 {
12  bool verbose = true;
13 
14  CommandLine cmd;
15  cmd.AddValue ("verbose", "Tell application to log if true", verbose);
16 
17  cmd.Parse (argc,argv);
18 
19  /* ... */
20 
21  Simulator::Run ();
22  Simulator::Destroy ();
23  return 0;
24 }
25 
26 
27 '''

Definition at line 115 of file create-module.py.

◆ EXAMPLES_WSCRIPT_TEMPLATE

string create-module.EXAMPLES_WSCRIPT_TEMPLATE
Initial value:
1 = '''# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2 
3 def build(bld):
4  obj = bld.create_ns3_program('%(MODULE)s-example', [%(MODULE)r])
5  obj.source = '%(MODULE)s-example.cc'
6 
7 '''

Definition at line 107 of file create-module.py.

◆ HELPER_CC_TEMPLATE

string create-module.HELPER_CC_TEMPLATE
Initial value:
1 = '''/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 
3 #include "%(MODULE)s-helper.h"
4 
5 namespace ns3 {
6 
7 /* ... */
8 
9 
10 }
11 
12 '''

Definition at line 75 of file create-module.py.

◆ HELPER_H_TEMPLATE

string create-module.HELPER_H_TEMPLATE
Initial value:
1 = '''/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 #ifndef %(INCLUDE_GUARD)s
3 #define %(INCLUDE_GUARD)s
4 
5 #include "ns3/%(MODULE)s.h"
6 
7 namespace ns3 {
8 
9 /* ... */
10 
11 }
12 
13 #endif /* %(INCLUDE_GUARD)s */
14 
15 '''

Definition at line 90 of file create-module.py.

◆ MODEL_CC_TEMPLATE

string create-module.MODEL_CC_TEMPLATE
Initial value:
1 = '''/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 
3 #include "%(MODULE)s.h"
4 
5 namespace ns3 {
6 
7 /* ... */
8 
9 
10 }
11 
12 '''

Definition at line 44 of file create-module.py.

◆ MODEL_H_TEMPLATE

string create-module.MODEL_H_TEMPLATE
Initial value:
1 = '''/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 #ifndef %(INCLUDE_GUARD)s
3 #define %(INCLUDE_GUARD)s
4 
5 namespace ns3 {
6 
7 /* ... */
8 
9 }
10 
11 #endif /* %(INCLUDE_GUARD)s */
12 
13 '''

Definition at line 59 of file create-module.py.

◆ TEST_CC_TEMPLATE

string create-module.TEST_CC_TEMPLATE

Definition at line 144 of file create-module.py.

◆ WSCRIPT_TEMPLATE

string create-module.WSCRIPT_TEMPLATE

Definition at line 8 of file create-module.py.