Generic SmartRest library
Dependents: SmartRestUnitTest MbedSmartRest MbedSmartRestStreaming
Record Class Reference
A record which can be read and serialized. More...
#include <Record.h>
Inherits DataGenerator.
Inherited by ComposedRecord, and ParsedRecord.
Public Member Functions | |
virtual size_t | values () const =0 |
Returns the number of values in this record. | |
virtual const Value & | value (size_t index) const =0 |
Returns the value object by index. | |
virtual DataGenerator * | copy () const =0 |
Creates a deep copy on the heap. |
Detailed Description
A record which can be read and serialized.
Definition at line 42 of file Record.h.
Member Function Documentation
virtual DataGenerator* copy | ( | ) | const [pure virtual, inherited] |
Creates a deep copy on the heap.
The class type may be different. The only thing guaranteed is that the copy behaves exactly the same.
- Returns:
- cloned object with no memory dependencies
virtual const Value& value | ( | size_t | index ) | const [pure virtual] |
Returns the value object by index.
- Parameters:
-
index the index of the value
- Returns:
- a copy of a value object
Implemented in ComposedRecord, and ParsedRecord.
virtual size_t values | ( | ) | const [pure virtual] |
Returns the number of values in this record.
- Returns:
- number of values in this record
Implemented in ComposedRecord, and ParsedRecord.
Generated on Wed Jul 13 2022 09:53:06 by 1.7.2