| 123456789101112131415161718192021222324252627282930313233343536 |
- #pragma once
- #include "jsonContainer.hh"
- #include "jsonObjectEntry.hh"
- #include "jsonException.hh"
- class JSonObject: public JSonContainer
- {
- public:
- JSonObject(JSonContainer *parent);
- virtual ~JSonObject();
- void push(const std::string &key, JSonElement *child);
- JSonObject::const_iterator find(const std::string &key) const;
- bool contains(const std::string &) const;
- virtual JSonElement *firstChild();
- virtual const JSonElement *firstChild() const;
- const JSonElement* get(const std::string &) const;
- virtual std::string stringify() const;
- class DoubleKeyException: public JsonException
- {
- public:
- DoubleKeyException(unsigned long long offset, const std::string &key, WrappedBuffer<char> &buf);
- };
- class NotAKeyException: public JsonException
- {
- public:
- NotAKeyException(unsigned long long offset, WrappedBuffer<char> &buf);
- };
- };
|