#include <senml_simplepack.h>
|
| | SenMLSimplePack () |
| |
| | ~SenMLSimplePack () |
| |
| int | fieldsToJson () |
| |
| int | fieldsToCbor () |
| |
| int | getFieldLength () |
| |
| | 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 |
| |
◆ SenMLSimplePack()
| SenMLSimplePack::SenMLSimplePack |
( |
| ) |
|
|
inline |
◆ ~SenMLSimplePack()
| SenMLSimplePack::~SenMLSimplePack |
( |
| ) |
|
|
inline |
◆ fieldsToCbor()
| int SenMLSimplePack::fieldsToCbor |
( |
| ) |
|
|
inlinevirtual |
renders all the fields to cbor format. renders all the fields of the object without the length info at the beginning note: this is public so that custom implementations for the record object can use other objects internally and render to json using this function (ex: coordinatesRecord using 3 floatRecrods for lat, lon & alt.
- Returns
- : The number of bytes that were written.
Implements SenMLBasePack.
◆ fieldsToJson()
| int SenMLSimplePack::fieldsToJson |
( |
| ) |
|
|
inlinevirtual |
renders all the fields to json, without the starting and ending brackets. Inheriters can extend this function if they want to add extra fields to the json output note: this is public so that custom implementations for the record object can use other objects internally and render to json using this function (ex: coordinatesRecord using 3 floatRecrods for lat, lon & alt.
- Returns
- : None
Implements SenMLBasePack.
◆ getFieldLength()
| int SenMLSimplePack::getFieldLength |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: