jsonObject.hh 450 B

12345678910111213141516171819
  1. #pragma once
  2. #include <map>
  3. #include "jsonContainer.hh"
  4. template<typename T> class JSonPrimitive;
  5. class JSonObject: public JSonContainer, public std::map<std::string, JSonElement*>
  6. {
  7. public:
  8. virtual ~JSonObject();
  9. void push(const std::string &key, JSonElement *child);
  10. virtual unsigned int size() const;
  11. bool contains(const std::string &) const;
  12. const JSonElement* get(const std::string &) const;
  13. };