#include <IndicatorTextFigure.h>
IndicatorTextFigure::IndicatorTextFigure |
( |
const char * |
name = nullptr | ) |
|
|
inlineexplicit |
41 : cTextFigure(name) {}
const char ** IndicatorTextFigure::getAllowedPropertyKeys |
( |
| ) |
const |
|
overrideprotectedvirtual |
31 static const char *
keys[32];
33 const char *localKeys[] = {
34 PKEY_TEXT_FORMAT, PKEY_INITIAL_VALUE,
nullptr 36 concatArrays(keys, cTextFigure::getAllowedPropertyKeys(), localKeys);
std::vector< K > keys(const std::map< K, V > &m)
Definition: stlutils.h:96
virtual const char* IndicatorTextFigure::getTextFormat |
( |
| ) |
const |
|
inlinevirtual |
std::string textFormat
Definition: IndicatorTextFigure.h:32
void IndicatorTextFigure::parse |
( |
cProperty * |
property | ) |
|
|
overrideprotectedvirtual |
43 cTextFigure::parse(property);
46 if ((s = property->getValue(PKEY_TEXT_FORMAT)) !=
nullptr)
48 if ((s = property->getValue(PKEY_INITIAL_VALUE)) !=
nullptr)
virtual void setTextFormat(const char *textFormat)
Definition: IndicatorTextFigure.h:44
double atod(const char *s)
Converts string to double.
Definition: INETUtils.cc:38
virtual void setValue(int series, simtime_t timestamp, double value) override
Definition: IndicatorTextFigure.cc:52
value< double, units::s > s
Definition: Units.h:1049
void IndicatorTextFigure::refresh |
( |
| ) |
|
|
protectedvirtual |
62 if (std::isnan(
value)) {
double value
Definition: IndicatorTextFigure.h:33
std::string textFormat
Definition: IndicatorTextFigure.h:32
virtual void IndicatorTextFigure::setTextFormat |
( |
const char * |
textFormat | ) |
|
|
inlinevirtual |
virtual void refresh()
Definition: IndicatorTextFigure.cc:60
std::string textFormat
Definition: IndicatorTextFigure.h:32
void IndicatorTextFigure::setValue |
( |
int |
series, |
|
|
simtime_t |
timestamp, |
|
|
double |
value |
|
) |
| |
|
overridevirtual |
Implements inet::IIndicatorFigure.
virtual void refresh()
Definition: IndicatorTextFigure.cc:60
double value
Definition: IndicatorTextFigure.h:33
std::string IndicatorTextFigure::textFormat = "%g" |
|
protected |
double IndicatorTextFigure::value = NaN |
|
protected |
The documentation for this class was generated from the following files: