2 #include "ns3/core-module.h" 3 #include "ns3/config-store-module.h" 25 .AddAttribute (
"TestInt16",
"help text",
28 MakeIntegerChecker<int16_t> ())
41 int main (
int argc,
char *argv[])
44 cmd.Parse (argc, argv);
Introspection did not find any typical Config paths.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Hold variables of type string.
static void Run(void)
Run the simulation.
Hold a signed integer type.
int16_t m_int16
value to configure
void RegisterRootNamespaceObject(Ptr< Object > obj)
Ptr< const AttributeAccessor > MakeIntegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
Parse command-line arguments.
static void Destroy(void)
Execute the events scheduled with ScheduleDestroy().
void ConfigureDefaults(void)
Configure the default values.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void ConfigureAttributes(void)
Configure the attribute values.
#define NS_ABORT_MSG_UNLESS(cond, msg)
Abnormal program termination if a condition is false, with a message.
void SetDefault(std::string name, const AttributeValue &value)
Example class to demonstrate use of the ns-3 Config Store.
static TypeId GetTypeId(void)
Get the type ID.
A base class which provides memory management and object aggregation.
void SetAttribute(std::string name, const AttributeValue &value)
Set a single attribute, raising fatal errors if unsuccessful.
a unique identifier for an interface.
void GetAttribute(std::string name, AttributeValue &value) const
Get the value of an attribute, raising fatal errors if unsuccessful.
TypeId SetParent(TypeId tid)
Set the parent TypeId.