cresultrecorder.h Source File¶
|
API
|
cresultrecorder.h
87 opp_string_map *manualAttrs = nullptr; // If attrsProperty==nullptr, specifies an alternative source of attributes; the ownership is passed into the result recorder object.
94 cProperty *attrsProperty = nullptr; // property to take result attributes from (normally @statistic[statisticName])
96 bool finishCalled = false; // to prevent double-recording of scalar results based on multiple signals
108 [[deprecated]] virtual void init(cComponent *component, const char *statisticName, const char *recordingMode, cProperty *attrsProperty, opp_string_map *manualAttrs=nullptr) {} // deprecated, left for backward compatibility
111 virtual std::string getFullPath() const override {return getComponent()->getFullPath() + "." + getResultName();}
134 virtual void receiveSignal(cResultFilter *prev, simtime_t_cref t, bool b, cObject *details) override;
135 virtual void receiveSignal(cResultFilter *prev, simtime_t_cref t, intval_t l, cObject *details) override;
136 virtual void receiveSignal(cResultFilter *prev, simtime_t_cref t, uintval_t l, cObject *details) override;
137 virtual void receiveSignal(cResultFilter *prev, simtime_t_cref t, double d, cObject *details) override;
138 virtual void receiveSignal(cResultFilter *prev, simtime_t_cref t, const SimTime& v, cObject *details) override;
139 virtual void receiveSignal(cResultFilter *prev, simtime_t_cref t, const char *s, cObject *details) override;
140 virtual void receiveSignal(cResultFilter *prev, simtime_t_cref t, cObject *obj, cObject *details) override;
Abstract base class for numeric result recorders.
Definition cresultrecorder.h:129
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition cobject.h:93
Stores a (NED) property with its (possibly compound) value.
Definition cproperty.h:39
Common abstract base class for result filters and result recorders.
Definition cresultlistener.h:35
cResultRecorderType(const char *name, const char *className, const char *description=nullptr)
cResultRecorder * create() const
static cResultRecorderType * find(const char *name)
const char * getDescription() const
Definition cresultrecorder.h:168
static cResultRecorderType * get(const char *name)
virtual const char * getName() const override
Definition cresultrecorder.h:110
virtual std::string getFullPath() const override
Definition cresultrecorder.h:111
Definition opp_pooledstring.h:64
Lightweight string-to-string map, used internally in some parts of OMNeT++.
Definition opp_string.h:220
Lightweight string class, used internally in some parts of OMNeT++.
Definition opp_string.h:40
int64_t intval_t
Signed integer type which is guaranteed to be at least 64 bits wide. It is used throughout the librar...
Definition simkerneldefs.h:101
uint64_t uintval_t
Unsigned integer type which is guaranteed to be at least 64 bits wide. It is used throughout the libr...
Definition simkerneldefs.h:109
const simtime_t & simtime_t_cref
Constant reference to a simtime_t.
Definition simtime_t.h:48
Definition cresultrecorder.h:82
const char * statisticName
The base name for the statistic; usually the index of the @statistic [] property (the name in bracket...
Definition cresultrecorder.h:84
cComponent * component
The statistic should be recorded for this module/channel; usually the module on which the @statistic ...
Definition cresultrecorder.h:83
const char * recordingMode
The recording mode; usually an element the the record=... list in the @statistic property.
Definition cresultrecorder.h:85
cProperty * attrsProperty
An optional property from which extra attributes can be taken; usually the @statistic property.
Definition cresultrecorder.h:86
Generated on for API by