A Discrete-Event Network Simulator
API
object-base.cc File Reference

ns3::ObjectBase class implementation. More...

#include "object-base.h"
#include "log.h"
#include "trace-source-accessor.h"
#include "attribute-construction-list.h"
#include "string.h"
#include "ns3/core-config.h"
#include <cstdlib>
#include <cstring>
#include <unordered_map>
+ Include dependency graph for object-base.cc:

Go to the source code of this file.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 
 ns3::anonymous_namespace{object-base.cc}
 Unnamed namespace.
 

Macros

#define LOG_WHERE_VALUE(where, value)
 Log where and what value we find for the attribute. More...
 

Functions

std::pair< bool, std::string > ns3::anonymous_namespace{object-base.cc}::EnvDictionary (std::string key)
 Get key, value pairs from the "NS_ATTRIBUTE_DEFAULT" environment variable. More...
 

Detailed Description

ns3::ObjectBase class implementation.

Definition in file object-base.cc.

Macro Definition Documentation

◆ LOG_WHERE_VALUE

#define LOG_WHERE_VALUE (   where,
  value 
)
Value:
do { \
std::string valStr {"nothing"}; \
if (value) \
{ \
valStr = "\"" + value->SerializeToString (info.checker) + "\""; \
} \
NS_LOG_DEBUG (where << " gave " << valStr); \
} while (false)
@ value
the parser finished reading a JSON value

Log where and what value we find for the attribute.

Parameters
whereThe source of the value
valueThe value found, or "nothing"

Definition at line 145 of file object-base.cc.