Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6sax2attributes.h
Go to the documentation of this file.
1 
12 #ifndef P6SAX2ATTRIBUTES_H__
13 #define P6SAX2ATTRIBUTES_H__ 1
14 
15 #include "p6sax2types.h"
16 
17 namespace P6R {
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
38 interface p6ISAX2Attributes : public p6ICom
39 {
53  P6COMMETHOD getIndexByQName( P6SAX2STRING* pQName, P6UINT32* pIndex ) = 0;
54 
69  P6COMMETHOD getIndexByURI( P6SAX2STRING* pURI, P6SAX2STRING* pLocalName, P6UINT32* pIndex ) = 0;
70 
82  P6COMMETHOD getLength( P6UINT32* pLength ) = 0;
83 
99  P6COMMETHOD getLocalName( P6UINT32 index, P6SAX2STRING* pString ) = 0;
100 
117  P6COMMETHOD getQName( P6UINT32 index, P6SAX2STRING* pString ) = 0;
118 
132  P6COMMETHOD getTypeByIndex( P6UINT32 index, P6SAX2STRING* pString ) = 0;
133 
147  P6COMMETHOD getTypeByQName( P6SAX2STRING* pQName, P6SAX2STRING* pString ) = 0;
148 
163  P6COMMETHOD getTypeByURI( P6SAX2STRING* pURI, P6SAX2STRING* pLocalName, P6SAX2STRING* pString ) = 0;
164 
179  P6COMMETHOD getURI( P6UINT32 index, P6SAX2STRING* pString ) = 0;
180 
194  P6COMMETHOD getValueByIndex( P6UINT32 index, P6SAX2STRING* pString ) = 0;
195 
209  P6COMMETHOD getValueByQName( P6SAX2STRING* pQName, P6SAX2STRING* pString ) = 0;
210 
225  P6COMMETHOD getValueByURI( P6SAX2STRING* pURI, P6SAX2STRING* pLocalName, P6SAX2STRING* pString ) = 0;
226 };
227 
228 // {AADD72E0-0307-45ae-A655-5F293AF91803}
229 #define IF_p6ISAX2Attributes {0xaadd72e0,0x307,0x45ae,{0xa6,0x55,0x5f,0x29,0x3a,0xf9,0x18,0x3}}
230 
231 #ifdef __cplusplus
232 }
233 #endif
234 
235 } // namespace
236 
237 
238 #endif
239 
240 
241 
242 
243 
244 
virtual P6R::P6ERR getIndexByQName(P6SAX2STRING *pQName, P6UINT32 *pIndex)=0
Given the full qualified name (i.e., <namespace>:<attribute name>, like 'X:abc='), return the index value...
This is the standard structure used to point to tokens inside the XML document being parsed...
unsigned int P6UINT32
Definition: p6types.h:40
virtual P6R::P6ERR getLocalName(P6UINT32 index, P6SAX2STRING *pString)=0
Get the local name of the attribute identified by index into the attribute list.
virtual P6R::P6ERR getIndexByURI(P6SAX2STRING *pURI, P6SAX2STRING *pLocalName, P6UINT32 *pIndex)=0
Given the namespace URI and local name (e.g., given 'X:abc=', 'abc' is referred to as the local name)...
This interface is created by the p6ISAX2XMLReader component and returned to the application via the P...
virtual P6R::P6ERR getURI(P6UINT32 index, P6SAX2STRING *pString)=0
Get the URI that is associated with the attribute located at index in the attribute list stored in th...
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
virtual P6R::P6ERR getValueByIndex(P6UINT32 index, P6SAX2STRING *pString)=0
Find an attribute via an index into an attribute list.
virtual P6R::P6ERR getTypeByIndex(P6UINT32 index, P6SAX2STRING *pString)=0
Get the attributes type identified by index into the attribute list.
virtual P6R::P6ERR getQName(P6UINT32 index, P6SAX2STRING *pString)=0
Get the QName of the attribute identified by index into the attribute list.
virtual P6R::P6ERR getLength(P6UINT32 *pLength)=0
Return the number of attributes in the attribute array stored in this object.
To avoid having to copy strings or creating new strings we simply point into a set of buffers the sta...
Definition: p6sax2types.h:34
virtual P6R::P6ERR getValueByQName(P6SAX2STRING *pQName, P6SAX2STRING *pString)=0
Find an attribute using a QName as a lookup key.
virtual P6R::P6ERR getTypeByQName(P6SAX2STRING *pQName, P6SAX2STRING *pString)=0
Get the attributes type identified by QName as a lookup key into the attribute list.
virtual P6R::P6ERR getTypeByURI(P6SAX2STRING *pURI, P6SAX2STRING *pLocalName, P6SAX2STRING *pString)=0
Get the attributes type identified by a namespace as a lookup key into the attribute list...
#define P6COMMETHOD
Definition: p6types.h:872
virtual P6R::P6ERR getValueByURI(P6SAX2STRING *pURI, P6SAX2STRING *pLocalName, P6SAX2STRING *pString)=0
Find an attribute using a namespace as a lookup key.