diff options
Diffstat (limited to 'sensor')
-rw-r--r-- | sensor/include/trygvis/sensor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sensor/include/trygvis/sensor.h b/sensor/include/trygvis/sensor.h index bcbd43b..48fb509 100644 --- a/sensor/include/trygvis/sensor.h +++ b/sensor/include/trygvis/sensor.h @@ -184,10 +184,12 @@ public: return values.at(index); } - void set(const SampleKey *key, const std::string &value) { + SampleRecord& set(const SampleKey *key, const std::string &value) { values.resize(max(values.size(), key->index + 1)); values.at(key->index).reset(value); + + return *this; } template<class A> |