ChildNodesList.h 884 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // ChildNodesList.h
  3. //
  4. // Library: XML
  5. // Package: DOM
  6. // Module: DOM
  7. //
  8. // Definition of the ChildNodesList class.
  9. //
  10. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #ifndef DOM_ChildNodesList_INCLUDED
  16. #define DOM_ChildNodesList_INCLUDED
  17. #include "Poco/XML/XML.h"
  18. #include "Poco/DOM/NodeList.h"
  19. namespace Poco {
  20. namespace XML {
  21. class XML_API ChildNodesList: public NodeList
  22. // This implementation of NodeList is returned
  23. // by Node::getChildNodes().
  24. {
  25. public:
  26. Node* item(unsigned long index) const;
  27. unsigned long length() const;
  28. void autoRelease();
  29. protected:
  30. ChildNodesList(const Node* pParent);
  31. ~ChildNodesList();
  32. private:
  33. ChildNodesList();
  34. const Node* _pParent;
  35. friend class AbstractNode;
  36. };
  37. } } // namespace Poco::XML
  38. #endif // DOM_ChildNodesList_INCLUDED