class RXmlEngNodeListImpl |
This class should not be used directly. However, it defines the interface for RXmlEngNodeList<TXmlEngNode> through template specialization.
This class implements an iterator or filtered iterator for a tree. The OpenL() methods control which nodes are included in the iterator. It is possible to iterate across all node types or only a single type. It is possible to iterate only over nodes within a specific namespace. It is also possible to iterate over nodes with the same name.
Public Member Functions | |
---|---|
RXmlEngNodeListImpl() | |
IMPORT_C void | Close() |
IMPORT_C TInt | Count() |
IMPORT_C TBool | HasNext() |
IMPORT_C TXmlEngNode | Next() |
void | Open(void *, TXmlEngNode::TXmlEngDOMNodeType) |
void | OpenL(void *, TXmlEngNode::TXmlEngDOMNodeType, const TDesC8 &, const TDesC8 &) |
Private Member Functions | |
---|---|
void * | FindNextNode(void *) |
Private Attributes | |
---|---|
void * | iCurrentNode |
unsigned char * | iName |
unsigned char * | iNsUri |
TInt | iType |
IMPORT_C void | Close | ( | ) |
Closes a node list. This does not affect any of the nodes. Only internally used memory is freed.
void * | FindNextNode | ( | void * | aCurrentNode | ) | const [private] |
Finds the next node in the list according to the criteria specified in OpenL(). The next node or NULL if no next node
void * aCurrentNode | The current node pointer |
IMPORT_C TBool | HasNext | ( | ) | const |
Checks whether the next node exists in the list ETrue if the next node exists, EFalse otherwise
IMPORT_C TXmlEngNode | Next | ( | ) |
Gets the next node in the list The next node or NULL if it does not exist
void | Open | ( | void * | aHead, |
TXmlEngNode::TXmlEngDOMNodeType | aType | |||
) |
Initializes the list. The parameters to this method control what nodes are included in the list. If aType is NULL, all nodes are included in the list.
void * aHead | The first node in the list |
TXmlEngNode::TXmlEngDOMNodeType aType | Only include nodes of this type |
void | OpenL | ( | void * | aHead, |
TXmlEngNode::TXmlEngDOMNodeType | aType, | |||
const TDesC8 & | aName = KNullDesC8 , | |||
const TDesC8 & | aNs = KNullDesC8 | |||
) |
Initializes the list. The parameters to this method control what nodes are included in the list. If aType is NULL, all nodes are included in the list. Both aName and aNs, if specified, are copied internally.
leave
One of the system-wide error codes
void * aHead | The first node in the list |
TXmlEngNode::TXmlEngDOMNodeType aType | Only include nodes of this type |
const TDesC8 & aName = KNullDesC8 | Only include nodes that match this name |
const TDesC8 & aNs = KNullDesC8 | Only include nodes that match this namespace |