1
1

jsonObjectEntry.hh 539 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "jsonElement.hh"
  3. class JSonObject;
  4. class JSonObjectEntry: public JSonElement
  5. {
  6. public:
  7. JSonObjectEntry(JSonObject*, const std::string &key, JSonElement *item);
  8. virtual ~JSonObjectEntry();
  9. std::string stringify() const;
  10. bool operator==(const std::string &) const;
  11. const JSonElement *operator*() const;
  12. JSonElement *operator*();
  13. bool match(const std::string &) const;
  14. protected:
  15. const std::string key;
  16. JSonElement * const value;
  17. };