#include <xml/dom/xmlengnodelist_impl.h>
class RXmlEngNodeListImpl |
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 &) |
This class should not be used directly. However, it defines the interface for RXmlEngNodeList<TXmlEngNode> through template specialization.
See also: RXmlEngNodeList
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.
IMPORT_C void | Close | ( | ) |
Closes a node list. This does not affect any of the nodes. Only internally used memory is freed.
IMPORT_C TInt | Count | ( | ) | const |
Gets the list length.
Returns: Number of nodes in the listNumber of nodes in a node list
IMPORT_C TBool | HasNext | ( | ) | const |
Checks whether the next node exists in the list Checks whether next node exists in a node list
Returns: ETrue if the next node exists, EFalse otherwiseTRUE if next node exists, FALSE otherwise
IMPORT_C TXmlEngNode | Next | ( | ) |
Gets the next node in the list Retrieves next node from a node list
Returns: The next node or NULL if it does not existNext node
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.
Parameter | Description |
---|---|
aHead | The first node in the list |
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.
One of the system-wide error codes
Parameter | Description |
---|---|
aHead | The first node in the list |
aType | Only include nodes of this type |
aName | Only include nodes that match this name |
aNs | Only include nodes that match this namespace |