INET Framework for OMNeT++/OMNEST
SelfDoc.h File Reference

Classes

class  inet::SelfDoc
 
class  inet::SelfDocTempOffClass
 

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 

Macros

#define SelfDocTempOff   SelfDocTempOffClass selfDocTempOff_ ## __LINE__;
 
#define __Enter_Method_SelfDoc(...)
 
#define Enter_Method(...)
 
#define Enter_Method_Silent(...)
 

Macro Definition Documentation

◆ __Enter_Method_SelfDoc

#define __Enter_Method_SelfDoc (   ...)
Value:
if (SelfDoc::notInInitialize(__VA_ARGS__)) { \
std::ostringstream os; \
auto __from = __ctx.getCallerContext(); \
os << "=SelfDoc={ " << SelfDoc::keyVal("module", __from ? __from->getComponentType()->getFullName() : "-=unknown=-") \
<< ", " << SelfDoc::keyVal("action","CALL") \
<< ", " << SelfDoc::val("details") << " : { " \
<< SelfDoc::keyVal("call to", getSimulation()->getContext()->getComponentType()->getFullName()) \
<< ", " << SelfDoc::keyVal("function", std::string(opp_typename(typeid(*this))) + "::" + __func__) \
<< ", " << SelfDoc::keyVal("info", SelfDoc::enterMethodInfo(__VA_ARGS__)) \
<< " } }"; \
globalSelfDoc.insert(os.str()); \
}

◆ Enter_Method

#define Enter_Method (   ...)
Value:
omnetpp::cMethodCallContextSwitcher __ctx(this); __ctx.methodCall(__VA_ARGS__); \
__Enter_Method_SelfDoc(__VA_ARGS__)

◆ Enter_Method_Silent

#define Enter_Method_Silent (   ...)
Value:
omnetpp::cMethodCallContextSwitcher __ctx(this); __ctx.methodCallSilent(__VA_ARGS__); \
__Enter_Method_SelfDoc(__VA_ARGS__)

◆ SelfDocTempOff

#define SelfDocTempOff   SelfDocTempOffClass selfDocTempOff_ ## __LINE__;