mbed.org implementation of the abstract SmartREST library for the Cumulocity Platform SmartREST protocol.
Dependents: MbedSmartRestMain MbedSmartRestMain
Diff: ParsedRecord.h
- Revision:
- 4:059b8b90e0d9
- Parent:
- 0:099f76422485
- Child:
- 5:2b74510900da
--- a/ParsedRecord.h Mon Jul 07 17:12:59 2014 +0200 +++ b/ParsedRecord.h Wed Jul 09 15:37:19 2014 +0200 @@ -75,13 +75,13 @@ class ParsedRecord : public Record { public: - ParsedRecord(); + ParsedRecord(bool=false); ~ParsedRecord(); size_t values() const; const Value& value(size_t index) const; - DataGenerator* copy() const; + ParsedRecord* copy() const; /** * Returns the raw value string by index @@ -91,7 +91,7 @@ const char * rawValue(size_t index) const; protected: - void set(const char*, size_t); + bool set(const char*, size_t); void clear(); private: @@ -102,6 +102,7 @@ #endif const char *_buffer; size_t _count; + bool _copy; friend class Parser; };