| 12345678910111213141516171819202122232425262728293031323334353637 |
- /**
- * jsonObjectEntry.hh for jsonstroller
- *
- * Author: isundil <isundill@gmail.com>
- **/
- #pragma once
- #include "jsonElement.hh"
- class JSonObject;
- class JSonObjectEntry: public JSonElement
- {
- public:
- JSonObjectEntry(JSonObject*, const std::string &key, JSonElement *item);
- virtual ~JSonObjectEntry();
- std::string stringify() const;
- bool operator==(const std::string &) const;
- /**
- * Get associated value
- **/
- const JSonElement *operator*() const;
- JSonElement *operator*();
- /**
- * check if key or value match search pattern
- **/
- bool match(const std::string &) const;
- protected:
- const std::string key;
- JSonElement * const value;
- };
|