Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6domnodeset.h
Go to the documentation of this file.
1 
10 #ifndef P6DOMNODESET_H__
11 #define P6DOMNODESET_H__ 1
12 
13 #include "p6xmlnode.h"
14 
15 namespace P6R {
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
28 interface p6IDOMNodeset : public p6ICom
29 {
41  P6COMMETHOD next( p6IXMLNode** pChild ) = 0;
42 
52  P6COMMETHOD reset() = 0;
53 
66  P6COMMETHOD position( P6UINT32* pNumber ) = 0;
67 
80  P6COMMETHOD last( P6UINT32* pNumber ) = 0;
81 
94  P6COMMETHOD remove( P6UINT32 index ) = 0;
95 
108  P6COMMETHOD getType( P6XPATH_TYPE* pType ) = 0;
109 
122  P6COMMETHOD setType( P6XPATH_TYPE type ) = 0;
123 
136  P6COMMETHOD containsNode( p6IXMLNode* pNode, P6BOOL* pbResult ) = 0;
137 
152  P6COMMETHOD containsValue( p6IXMLNode* pNode, P6BOOL* pbResult ) = 0;
153 };
154 
155 // {C2F5AD78-C3B5-4934-B2B6-3F22581CAF7B}
156 #define IF_p6IDOMNodeset {0xc2f5ad78,0xc3b5,0x4934,{0xb2,0xb6,0x3f,0x22,0x58,0x1c,0xaf,0x7b}}
157 
158 
159 
168 {
180  P6COMMETHOD initialize( P6DOMXMLFLAGS flags ) = 0;
181 
193  P6COMMETHOD addNode( p6IXMLNode* pNode ) = 0;
194 };
195 
196 // {42CDA56E-34C9-4e7d-AE51-7AE1A8E2A4D1}
197 #define IF_p6IDOMNodesetInit {0x42cda56e,0x34c9,0x4e7d,{0xae,0x51,0x7a,0xe1,0xa8,0xe2,0xa4,0xd1}}
198 
199 // {DFBAB835-9FBE-4938-8E89-A9536CDB3BF2}
200 #define COMP_p6DOMNodesetInit {0xdfbab835,0x9fbe,0x4938,{0x8e,0x89,0xa9,0x53,0x6c,0xdb,0x3b,0xf2}}
201 
202 #ifdef __cplusplus
203 }
204 #endif
205 
206 } // namespace
207 
208 
209 #endif
210 
211 
212 
213 
214 
215 
virtual P6R::P6ERR last(P6UINT32 *pNumber)=0
Returns the index of the last node in the sequence.
unsigned int P6UINT32
Definition: p6types.h:40
virtual P6R::P6ERR containsValue(p6IXMLNode *pNode, P6BOOL *pbResult)=0
Does the value of the given XML node exist in the node set? The comparison is if the value of the nod...
bool P6BOOL
Boolean type.
Definition: p6types.h:101
virtual P6R::P6ERR addNode(p6IXMLNode *pNode)=0
Place the XML node into a node set where it can be sorted, enumerated, and deleted.
This component represents an element in an XML or JSON document.
virtual P6R::P6ERR setType(P6XPATH_TYPE type)=0
Allows the caller to set the type of all nodes contained in the node set (e.g., P6XPATH_TYPE_STR, each node represents a string).
P6XPATH_TYPE
Part of the XPath type system.
Definition: p6domxmltypes.h:46
P6UINT32 P6DOMXMLFLAGS
P6DOMXMLFLAGS.
Definition: p6domxmltypes.h:96
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
virtual P6R::P6ERR containsNode(p6IXMLNode *pNode, P6BOOL *pbResult)=0
Does the given XML node exist in the node set? The comparison is if the same node exists not if the n...
virtual P6R::P6ERR initialize(P6DOMXMLFLAGS flags)=0
Set the component into its initial state.
virtual P6R::P6ERR position(P6UINT32 *pNumber)=0
Starting at index 1 this method returns the index into the sequence of nodes that the enumerator is s...
This interface is an enumerator over a set of nodes resulting from the evaluation of an XPath express...
Definition: p6domnodeset.h:28
This component represents an element in an XML or JSON document.
Definition: p6xmlnode.h:94
#define P6COMMETHOD
Definition: p6types.h:872
This interface is used to create and add XML nodes into a p6IDOMNodeset component.
Definition: p6domnodeset.h:167
virtual P6R::P6ERR getType(P6XPATH_TYPE *pType)=0
Returns the type of all nodes contained in the node set (e.g., P6XPATH_TYPE_STR, each node represents...
virtual P6R::P6ERR next(p6IXMLNode **pChild)=0
Return the next node in the node set.
virtual P6R::P6ERR reset()=0
The enumerator returns a sequence of nodes in a specific order.