|
| | SenMLPackTemplate (const char *baseName) |
| |
| | SenMLPackTemplate (const char *baseName, SenMLUnit baseUnit) |
| |
| | SenMLPackTemplate (const char *baseName, SenMLUnit baseUnit, double baseTime) |
| |
| | SenMLPackTemplate (PACK_ACTUATOR_SIGNATURE) |
| |
| | SenMLPackTemplate (const char *baseName, PACK_ACTUATOR_SIGNATURE) |
| |
| | SenMLPackTemplate (const char *baseName, SenMLUnit baseUnit, PACK_ACTUATOR_SIGNATURE) |
| |
| | SenMLPackTemplate (const char *baseName, SenMLUnit baseUnit, double baseTime, PACK_ACTUATOR_SIGNATURE) |
| |
| | ~SenMLPackTemplate () |
| |
| T | getBaseSum () |
| |
| bool | setBaseSum (T value) |
| |
| T | getBaseValue () |
| |
| bool | setBaseValue (T value) |
| |
| | SenMLPack () |
| |
| | SenMLPack (const char *baseName) |
| |
| | SenMLPack (const char *baseName, SenMLUnit baseUnit) |
| |
| | SenMLPack (const char *baseName, SenMLUnit baseUnit, double baseTime) |
| |
| | SenMLPack (PACK_ACTUATOR_SIGNATURE) |
| |
| | SenMLPack (const char *baseName, PACK_ACTUATOR_SIGNATURE) |
| |
| | SenMLPack (const char *baseName, SenMLUnit baseUnit, PACK_ACTUATOR_SIGNATURE) |
| |
| | SenMLPack (const char *baseName, SenMLUnit baseUnit, double baseTime, PACK_ACTUATOR_SIGNATURE) |
| |
| | ~SenMLPack () |
| |
| void | setBaseName (const char *name) |
| |
| const char * | getBaseName () |
| |
| void | setBaseUnit (SenMLUnit unit) |
| |
| SenMLUnit | getBaseUnit () |
| |
| void | setBaseTime (double time) |
| |
| void | setBaseTimeSilently (double time) |
| |
| double | getBaseTime () |
| |
| virtual int | fieldsToJson () |
| |
| virtual int | fieldsToCbor () |
| |
| | SenMLBasePack () |
| |
| | ~SenMLBasePack () |
| |
| int | toJson (Stream &dest, SenMLStreamMethod format=SENML_RAW) |
| |
| int | toJson (char *dest, int length, SenMLStreamMethod format=SENML_RAW) |
| |
| int | toCbor (Stream &dest, SenMLStreamMethod format=SENML_RAW) |
| |
| int | toCbor (char *dest, int length, SenMLStreamMethod format=SENML_RAW) |
| |
| void | fromJson (Stream &source, SenMLStreamMethod format=SENML_RAW) |
| |
| void | fromJson (const char *source) |
| |
| void | fromCbor (Stream &source, SenMLStreamMethod format=SENML_RAW) |
| |
| void | fromCbor (char *source, int length, SenMLStreamMethod format) |
| |
| bool | add (SenMLBase &item) |
| |
| bool | clear () |
| |
| SenMLBase * | getFirst () |
| |
| virtual int | getCount () |
| |
| virtual int | fieldsToJson ()=0 |
| |
| virtual int | fieldsToCbor ()=0 |
| |
| virtual const char * | getBaseName () |
| |
| virtual SenMLUnit | getBaseUnit () |
| |
| | SenMLBase () |
| |
| | ~SenMLBase () |
| |
| SenMLBase * | getNext () |
| |
| SenMLBase * | getRoot () |
| |
| virtual void | adjustToBaseTime (double prev, double time) |
| |
| virtual int | fieldsToJson ()=0 |
| |
| virtual int | fieldsToCbor ()=0 |
| |
template<class T>
class SenMLPackTemplate< T >
A template class that can be used to create new SenMLPack types that store a base-value and/or base-sum with a basic data type (no structs or classes). When you create a new class, you should always implement the following functions in order for the new class to operate correctly: fieldsToJson() and fieldsToCbor(). These functions are responsible for rendering both base-value and base-sum. This class does not implement any rendering. See previous implementations such as SenMLIntPack for inspiration.