16 #ifndef __OMNETPP_CRESULTRECORDER_H 17 #define __OMNETPP_CRESULTRECORDER_H 19 #include "cresultlistener.h" 20 #include "ccomponent.h" 21 #include "onstartup.h" 26 class cResultRecorder;
41 #define Register_ResultRecorder(NAME, CLASSNAME) \ 42 static omnetpp::cResultRecorder *__FILEUNIQUENAME__() {return new CLASSNAME;} \ 43 EXECUTE_ON_STARTUP(omnetpp::resultRecorders.getInstance()->add(new omnetpp::cResultRecorderType(NAME,__FILEUNIQUENAME__));) 57 #define Register_ResultRecorder2(NAME, CLASSNAME, DESCRIPTION) \ 58 static omnetpp::cResultRecorder *__FILEUNIQUENAME__() {return new CLASSNAME;} \ 59 EXECUTE_ON_STARTUP(omnetpp::resultRecorders.getInstance()->add(new omnetpp::cResultRecorderType(NAME,__FILEUNIQUENAME__,DESCRIPTION));) 73 const char *statisticName;
74 const char *recordingMode;
95 virtual const char *
getName()
const override {
return getStatisticName();}
96 virtual std::string
getFullPath()
const override {
return getComponent()->getFullPath() +
"." + getResultName();}
97 virtual cComponent *getComponent()
const {
return component;}
98 virtual const char *getStatisticName()
const {
return statisticName;}
99 virtual const char *getRecordingMode()
const {
return recordingMode;}
100 virtual std::string getResultName()
const {
return std::string(getStatisticName())+
":"+getRecordingMode();}
134 std::string description;
virtual std::string getFullPath() const override
Definition: cresultrecorder.h:96
Lightweight string class, used internally in some parts of OMNeT++.
Definition: opp_string.h:39
Common base for module and channel classes.
Definition: ccomponent.h:48
Root of the OMNeT++ class hierarchy. cObject is a lightweight class without any data members...
Definition: cobject.h:58
Abstract base class for result recorders.
Definition: cresultrecorder.h:69
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
Registers a cResultRecorder.
Definition: cresultrecorder.h:131
Abstract base class for numeric result recorders.
Definition: cresultrecorder.h:111
cResultRecorder * create() const
Definition: cresultrecorder.h:147
Stores a (NED) property with its (possibly compound) value.
Definition: cproperty.h:38
Base class for result filters.
Definition: cresultfilter.h:72
Lightweight string-to-string map, used internally in some parts of OMNeT++.
Definition: opp_string.h:200
virtual const char * getName() const override
Definition: cresultrecorder.h:95
Definition: cabstracthistogram.h:21
Common abstract base class for result filters and result recorders.
Definition: cresultlistener.h:34
Base class for cOwnedObject-based classes that do not wish to support assignment and duplication...
Definition: cownedobject.h:248
const char * getDescription() const
Definition: cresultrecorder.h:152