|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
�PREV CLASS�� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CNodeId { public: CNodeId(); CNodeId(const CNodeId &nodeId); CNodeId(int nDocumentId, int nNodeId); CNodeId(const XNode &pNode); ~CNodeId(); public: const CNodeId &operator=(const CNodeId &nodeId); void SetNull(); bool IsNull() const; int GetDocumentId() const; int GetNodeId() const; int Compare(const CNodeId &nodeId) const; CString ToString() const; };
The unique identifier of an XML node.
Node identifiers contain two components. The first component
uniquely identifies the node's owner document within an application;
the second component uniquely identifies the node within its
owner document. These components are obtained via calls to
Dom::INode::GetDocumentId
and
Dom::INode::GetNodeId
functions specified
by the Extended Document Model (XDM).
The document identification component must be non-zero for every node. The zero document identification value is reserved for the null node identifier, which does not reference any node.
Constructor/Destructor Summary | |
CNodeId
();
����������Constructs the null document identifier. |
|
CNodeId
(const CNodeId &nodeId);
����������Constructs the node identifier, copying another node identifier. |
|
CNodeId
(int nDocumentId, int nNodeId);
����������Constructs the node identifier with the specified components. |
|
CNodeId
(const XNode &pNode);
����������Constructs the node identifier for the specified node. |
|
~CNodeId
();
����������Destroys the document identifier. |
Function Summary | |
const�CNodeId�&
|
operator=
(const CNodeId &nodeId);
����������Assigns the specified node identifier to this node identifier. |
void
|
SetNull
();
����������Sets this node identifier to null. |
bool
|
IsNull
() const;
����������Tests whether this node identifier is null. |
int
|
GetDocumentId
() const;
����������Returns the document identification component of this node identifier. |
int
|
GetNodeId
() const;
����������Returns the node identification component of this node identifier. |
int
|
Compare
(const CNodeId &nodeId) const;
����������Compares this node identifier with another node identifier. |
CString
|
ToString
() const;
����������Returns the string representation of this node identifier. |
Constructor/Destructor Detail |
CNodeId();
Constructs the null document identifier.
CNodeId(const CNodeId &nodeId);
Constructs the node identifier, copying another node identifier.
nodeId
- the node identifier to copyCNodeId(int nDocumentId, int nNodeId);
Constructs the node identifier with the specified components.
nDocumentId
- the identification of a document
within an applicationnNodeId
- the identification of a node
within a documentCNodeId(const XNode &pNode);
Constructs the node identifier for the specified node.
pNode
- the node~CNodeId();
Destroys the document identifier.
Function Detail |
const CNodeId &operator=(const CNodeId &nodeId);
Assigns the specified node identifier to this node identifier.
nodeId
- the node identifier to assignvoid SetNull();
Sets this node identifier to null.
bool IsNull() const;
Tests whether this node identifier is null.
true
if this node identifier is null;
false
otherwiseint GetDocumentId() const;
Returns the document identification component of this node identifier.
int GetNodeId() const;
Returns the node identification component of this node identifier.
int Compare(const CNodeId &nodeId) const;
Compares this node identifier with another node identifier.
First the document identification components are compared. If the document identification of this node has the lower value, the result if a negative integer; if the document identification of this node has the higher value, the result is a positive integer.
If document identification components are equal, then node identification components are compared. If the node identification of this node has the lower value, the result if a negative integer; if the node identification of this node has the higher value, the result is a positive integer; otherwise node identificators are equal and the result is zero.
nodeId
- the node identifier to compare withCString ToString() const;
Returns the string representation of this node identifier.
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
�PREV CLASS�� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |