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
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
:
51
friend
class
NscStackStringAccessor
;
57
void
Set
(std::string name, std::string value);
63
std::string
Get
(std::string name)
const
;
64
INetStack
*
m_stack
;
65
};
66
}
// namespace ns3
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
ns3::Ns3NscStack::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Definition:
nsc-sysctl.cc:94
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::Ns3NscStack::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
first.stack
tuple stack
Definition:
first.py:34
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:63
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::Ns3NscStack::m_stack
INetStack * m_stack
the underlying stack
Definition:
nsc-sysctl.h:64
src
internet
model
nsc-sysctl.h
Generated on Sat Apr 19 2014 14:06:57 for ns-3 by
1.8.6