Own fork of MbedSmartRest
Dependents: MbedSmartRestMain MbedSmartRestMain
Fork of MbedSmartRest by
Diff: ParsedRecord.h
- Revision:
- 11:e1bee9a77652
- Parent:
- 5:2b74510900da
- Child:
- 15:e30cb7ae56af
--- a/ParsedRecord.h Thu Oct 23 14:41:58 2014 +0200 +++ b/ParsedRecord.h Sat Nov 15 11:21:01 2014 +0100 @@ -74,37 +74,37 @@ */ class ParsedRecord : public Record { -public: - ParsedRecord(bool = false); - ~ParsedRecord(); + public: + ParsedRecord(bool = false); + ~ParsedRecord(); - size_t values() const; - const Value& value(size_t) const; + size_t values() const; + const Value& value(size_t) const; - ParsedRecord* copy() const; + ParsedRecord* copy() const; - /** - * Returns the raw value string by index - * @param index the index of the value - * @return a pointer to the raw value - */ - const char * rawValue(size_t) const; + /** + * Returns the raw value string by index + * @param index the index of the value + * @return a pointer to the raw value + */ + const char * rawValue(size_t) const; -protected: - bool set(const char*, size_t); - void clear(); + protected: + bool set(const char*, size_t); + void clear(); -private: + private: #ifdef SMARTREST_PARSED_DYNAMIC_ALLOC - const Value **_values; + const Value **_values; #else - const Value *_values[SMARTREST_PARSED_FIXED_SIZE]; + const Value *_values[SMARTREST_PARSED_FIXED_SIZE]; #endif - const char *_buffer; - size_t _count; - bool _copy; + const char *_buffer; + size_t _count; + bool _copy; -friend class Parser; + friend class Parser; };