A Discrete-Event Network Simulator
API
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;
49 
50 private:
55  friend class NscStackStringAccessor;
61  void Set (std::string name, std::string value);
67  std::string Get (std::string name) const;
69 };
70 } // namespace ns3
This object represent the underlying nsc stack attributes and provide a ns-3-like system to access th...
Definition: nsc-sysctl.cc:32
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
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: nsc-sysctl.cc:94
Struct interface to NSC stack.
Definition: sim_interface.h:31
void SetStack(INetStack *stack)
Set the underlying stack.
Definition: nsc-sysctl.h:48
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static TypeId GetTypeId(void)
Get the type ID.
tuple stack
Definition: first.py:34
void Set(std::string name, std::string value)
Set an attribute.
Definition: nsc-sysctl.cc:146
std::string Get(std::string name) const
Get an attribute.
Definition: nsc-sysctl.cc:135
A base class which provides memory management and object aggregation.
Definition: object.h:87
a unique identifier for an interface.
Definition: type-id.h:58
INetStack * m_stack
the underlying stack
Definition: nsc-sysctl.h:68