Abstract base class for result recorders. More...
#include <cresultrecorder.h>
Public Member Functions | |
virtual void | init (cComponent *component, const char *statisticName, const char *recordingMode, cProperty *attrsProperty, opp_string_map *manualAttrs=NULL) |
Abstract base class for result recorders.
virtual void cResultRecorder::init | ( | cComponent * | component, | |
const char * | statisticName, | |||
const char * | recordingMode, | |||
cProperty * | attrsProperty, | |||
opp_string_map * | manualAttrs = NULL | |||
) | [virtual] |
Sets contextual information on the result recorder: it will record a (scalar, vector, etc) result for the given component, with a name composed of statisticName and recordingMode, result attributes taken either from the keys and values of the attrsProperty NED property, or from the manualAttrs string map (exactly one of the two must be non-NULL).
manualAttrs, when specified, will be owned (i.e. deleted) by the result recorder object.