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 const char *statisticName;
58 const char *recordingMode;
79 virtual const char *
getName()
const override {
return getStatisticName();}
80 virtual std::string
getFullPath()
const override {
return getComponent()->getFullPath() +
"." + getResultName();}
81 virtual cComponent *getComponent()
const {
return component;}
82 virtual const char *getStatisticName()
const {
return statisticName;}
83 virtual const char *getRecordingMode()
const {
return recordingMode;}
84 virtual std::string getResultName()
const {
return std::string(getStatisticName())+
":"+getRecordingMode();}
virtual std::string getFullPath() const override
Definition: cresultrecorder.h:80
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:53
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
Registers a cResultRecorder.
Definition: cresultrecorder.h:115
Abstract base class for numeric result recorders.
Definition: cresultrecorder.h:95
Stores a (NED) property with its (possibly compound) value.
Definition: cproperty.h:38
Base class for result filters.
Definition: cresultfilter.h:57
Lightweight string-to-string map, used internally in some parts of OMNeT++.
Definition: opp_string.h:200
cResultRecorder * create() const
Definition: cresultrecorder.h:130
virtual const char * getName() const override
Definition: cresultrecorder.h:79
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