A Discrete-Event Network Simulator
ns-3.29 @
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
internet
model
nsc-sysctl.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License version 2 as
5
* published by the Free Software Foundation;
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
*
16
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
17
*/
18
19
#include <string>
20
21
#include "ns3/attribute.h"
22
#include "ns3/object.h"
23
24
struct
INetStack
;
25
26
namespace
ns3
{
27
35
class
Ns3NscStack
:
public
Object
36
{
37
public
:
42
static
TypeId
GetTypeId
(
void
);
43
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
48
void
SetStack
(
INetStack
*
stack
) {
m_stack
=
stack
; }
49
50
private
:
55
friend
class
NscStackStringAccessor
;
61
void
Set
(std::string name, std::string value);
67
std::string
Get
(std::string name)
const
;
68
INetStack
*
m_stack
;
69
};
70
}
// namespace ns3
ns3::Ns3NscStack::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
nsc-sysctl.cc:94
ns3::NscStackStringAccessor
This object represent the underlying nsc stack attributes and provide a ns-3-like system to access th...
Definition:
nsc-sysctl.cc:32
ns3::Ns3NscStack
This object represents the underlying nsc stack, which is aggregated to a Node object, and which provides access to the sysctls of the nsc stack through attributes.
Definition:
nsc-sysctl.h:35
first.stack
stack
Definition:
first.py:34
INetStack
Struct interface to NSC stack.
Definition:
sim_interface.h:31
ns3::Ns3NscStack::SetStack
void SetStack(INetStack *stack)
Set the underlying stack.
Definition:
nsc-sysctl.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::Ns3NscStack::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
ns3::Ns3NscStack::Set
void Set(std::string name, std::string value)
Set an attribute.
Definition:
nsc-sysctl.cc:146
ns3::Ns3NscStack::Get
std::string Get(std::string name) const
Get an attribute.
Definition:
nsc-sysctl.cc:135
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:87
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::Ns3NscStack::m_stack
INetStack * m_stack
the underlying stack
Definition:
nsc-sysctl.h:68
Generated on Wed Nov 7 2018 10:01:55 for ns-3 by
1.8.14