16 #ifndef __OMNETPP_CSTATISTICBUILDER_H
17 #define __OMNETPP_CSTATISTICBUILDER_H
19 #include "omnetpp/clistener.h"
20 #include "omnetpp/cproperty.h"
24 extern const char *PROPKEY_STATISTIC_SOURCE;
25 extern const char *PROPKEY_STATISTIC_RECORD;
26 extern const char *PROPKEY_STATISTIC_CHECKSIGNALS;
37 enum TristateBool {TRISTATE_TRUE=1, TRISTATE_FALSE=0, TRISTATE_DEFAULT=-1};
49 void addResultRecorders(
cComponent *component);
61 void doAddResultRecorders(
cComponent *component, std::string& componentFullPath,
const char *statisticName,
cProperty *statisticProperty,
simsignal_t signal=SIMSIGNAL_NULL);
64 std::vector<std::string> extractRecorderList(
const char *modesOption,
cProperty *statisticProperty);
65 SignalSource doStatisticSource(
cComponent *component,
cProperty *statisticProperty,
const char *statisticName,
const char *sourceSpec, TristateBool checkSignalDecl,
bool needWarmupFilter);
66 void doResultRecorder(
const SignalSource& source,
const char *mode,
cComponent *component,
const char *statisticName,
cProperty *attrsProperty);
67 TristateBool parseTristateBool(
const char *s,
const char *what);