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
16
17#ifndef DOM_ChildNodesList_INCLUDED
18#define DOM_ChildNodesList_INCLUDED
19
20
21#include "Poco/XML/XML.h"
22#include "Poco/DOM/NodeList.h"
23
24
25namespace Poco {
26namespace XML {
27
28
29class XML_API ChildNodesList: public NodeList
30 // This implementation of NodeList is returned
31 // by Node::getChildNodes().
32{
33public:
34 Node* item(unsigned long index) const;
35 unsigned long length() const;
36
37 void autoRelease();
38
39protected:
40 ChildNodesList(const Node* pParent);
41 ~ChildNodesList();
42
43private:
44 ChildNodesList();
45
46 const Node* _pParent;
47
48 friend class AbstractNode;
49};
50
51
52} } // namespace Poco::XML
53
54
55#endif // DOM_ChildNodesList_INCLUDED
56