#include <FigureRecorder.h>
|
| virtual void | init (Context *ctx) override |
| |
| virtual void | collect (simtime_t_cref t, double value, cObject *details) override |
| |
◆ collect()
| void inet::FigureRecorder::collect |
( |
simtime_t_cref |
t, |
|
|
double |
value, |
|
|
cObject * |
details |
|
) |
| |
|
overrideprotectedvirtual |
◆ init()
| void inet::FigureRecorder::init |
( |
Context * |
ctx | ) |
|
|
overrideprotectedvirtual |
17 cNumericResultRecorder::init(ctx);
19 cModule *module = check_and_cast<cModule *>(getComponent());
20 const char *figureSpec = ctx->attrsProperty->getValue(
"targetFigure");
22 figureSpec = ctx->statisticName;
23 std::string figureName;
25 if (
const char *lastColon = strrchr(figureSpec,
':')) {
26 figureName = std::string(figureSpec, lastColon - figureSpec).c_str();
30 figureName = figureSpec;
33 cFigure *figure = module->getCanvas()->getFigureByPath(figureName.c_str());
35 throw cRuntimeError(
"Figure '%s' in module '%s' not found", figureName.c_str(), module->getFullPath().c_str());
◆ indicatorFigure
◆ series
| int inet::FigureRecorder::series = 0 |
|
protected |
The documentation for this class was generated from the following files: