| 12345678910111213141516171819202122232425262728293031 |
- #include "jsonObjectEntry.hh"
- #include "jsonObject.hh"
- JSonObjectEntry::JSonObjectEntry(JSonObject *parent, const std::string &k, JSonElement *v): JSonElement(parent), key(k), value(v)
- { }
- JSonObjectEntry::~JSonObjectEntry()
- {
- delete value;
- }
- bool JSonObjectEntry::operator==(const std::string &k) const
- {
- return key == k;
- }
- JSonElement *JSonObjectEntry::operator*()
- {
- return value;
- }
- const JSonElement *JSonObjectEntry::operator*() const
- {
- return value;
- }
- std::string JSonObjectEntry::stringify() const
- {
- return key;
- }
|