CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_node_list.h
1
2
3#pragma once
4
5#include <system/idisposable.h>
6#include <system/collections/ienumerable.h>
7#include <cstdint>
8
9
11namespace System
12{
13namespace Collections
14{
15namespace Generic
16{
17template <typename> class IEnumerator;
18} // namespace Generic
19} // namespace Collections
20namespace Xml
21{
22class XmlNode;
23} // namespace Xml
24} // namespace System
26
27namespace System {
28
29namespace Xml {
30
32class ASPOSECPP_SHARED_CLASS XmlNodeList : public Collections::Generic::IEnumerable<SharedPtr<System::Xml::XmlNode>>, public IDisposable
33{
34 typedef XmlNodeList ThisType;
36 typedef IDisposable BaseType1;
37
38 typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
39 ASPOSECPP_SHARED_RTTI_INFO_DECL();
40
41public:
42
45
46public:
47
50 virtual ASPOSECPP_SHARED_API int32_t get_Count() = 0;
51
56 virtual ASPOSECPP_SHARED_API SharedPtr<XmlNode> Item(int32_t index) = 0;
60
65 virtual ASPOSECPP_SHARED_API SharedPtr<XmlNode> idx_get(int32_t i);
66
67protected:
68
70 virtual ASPOSECPP_SHARED_API void PrivateDisposeNodeList();
71
72 virtual ASPOSECPP_SHARED_API ~XmlNodeList();
73
74private:
75
76 ASPOSECPP_SHARED_API void Dispose() override;
77
78};
79
80} // namespace Xml
81} // namespace System
82
83
Interface of object providing enumerator on contained elements.
Definition: ienumerable.h:25
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:30
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Represents an ordered collection of nodes.
Definition: xml_node_list.h:33
virtual SharedPtr< XmlNode > idx_get(int32_t i)
Returns a node at the given index.
SharedPtr< Collections::Generic::IEnumerator< SharedPtr< XmlNode > > > GetEnumerator() override=0
Provides support for iteration over the collection of nodes in the XmlNodeList.
virtual int32_t get_Count()=0
Returns the number of nodes in the XmlNodeList.
virtual void PrivateDisposeNodeList()
Disposes resources in the node list privately.
virtual SharedPtr< XmlNode > Item(int32_t index)=0
Retrieves a node at the given index.
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9