1
1

jsonObjectEntry.hh 484 B

1234567891011121314151617181920212223
  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. ~JSonObjectEntry();
  9. std::string stringify() const;
  10. bool operator==(const std::string &) const;
  11. const JSonElement *operator*() const;
  12. JSonElement *operator*();
  13. protected:
  14. const std::string key;
  15. JSonElement * const value;
  16. };