jsonContainer.hh 554 B

1234567891011121314151617181920212223242526
  1. /**
  2. * jsonContainer.hh for jsonstroller
  3. *
  4. * Author: isundil <isundill@gmail.com>
  5. **/
  6. #pragma once
  7. #include <list>
  8. #include "jsonElement.hh"
  9. class JSonContainer: public JSonElement, public std::list<JSonElement*>
  10. {
  11. public:
  12. JSonContainer(JSonContainer *parent);
  13. virtual ~JSonContainer();
  14. virtual bool operator==(const JSonElement *) const;
  15. /**
  16. * Get the first item of this container
  17. **/
  18. virtual JSonElement *firstChild() =0;
  19. virtual const JSonElement *firstChild() const =0;
  20. };