2 #include "ns3/core-module.h"
3 #include "ns3/config-store-module.h"
15 .AddAttribute (
"TestInt16",
"help text",
18 MakeIntegerChecker<int16_t> ())
31 int main (
int argc,
char *argv[])
34 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.
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)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void GetAttribute(std::string name, AttributeValue &value) const
Get the value of an attribute, raising fatal errors if unsuccessful.
void ConfigureAttributes(void)
#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)
static TypeId GetTypeId(void)
void Parse(int argc, char *argv[])
Parse the program arguments.
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.
TypeId SetParent(TypeId tid)
Set the parent TypeId.