|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class INamedNodeMap: virtual public CInterface { public: INamedNodeMap(); virtual ~INamedNodeMap(); public: virtual int GetLength() = 0; public: virtual XNode GetNamedItem(const CString &strName) = 0; virtual XNode SetNamedItem(const XNode &pArg) = 0; virtual XNode RemoveNamedItem(const CString &strName) = 0; virtual XNode Item(int nIndex) = 0; };
The collection of nodes that can be accessed by name.
This class implements
the C++ binding for the
NamedNodeMap
interface
specified by DOM.
INode
Constructor/Destructor Summary | |
INamedNodeMap
();
����������Constructs the named node map. |
|
~INamedNodeMap
();
����������Destroys the named node map. |
Function Summary | |
int
|
GetLength
();
����������Returns the number of nodes in this named node map. |
XNode
|
GetNamedItem
(const CString &strName);
����������Returns the node with the name specified by strName
in this named node map. |
XNode
|
SetNamedItem
(const XNode &pArg);
����������If the node with the same name as the node specified by pArg
already exists in this named node map, replaces
that node with
pArg
; otherwise
adds the node specified by
pArg
to this named node map. |
XNode
|
RemoveNamedItem
(const CString &strName);
����������Removes the node with the name specified by strName
from this named node map. |
XNode
|
Item
(int nIndex);
����������Returns the node in this named node map at the index specified by nIndex
. |
Constructor/Destructor Detail |
INamedNodeMap();
Constructs the named node map.
virtual ~INamedNodeMap();
Destroys the named node map.
Function Detail |
virtual int GetLength() = 0;
Returns the number of nodes in this named node map.
This method implements the C++ binding
for the
length
attribute specified by
DOM.
virtual XNode GetNamedItem(const CString &strName) = 0;
Returns the node with the name specified by
strName
in this named node map.
This method implements the C++ binding
for the
getNamedItem
operation specified by
DOM.
strName
- the node nameNULL
if there is no such nodevirtual XNode SetNamedItem(const XNode &pArg) = 0;
If the node with the same name as the node specified by
pArg
already exists in this named node map, replaces
that node with
pArg
; otherwise
adds the node specified by
pArg
to this named node map.
This method implements the C++ binding
for the
setNamedItem
operation specified by
DOM.
pArg
- the node to addNULL
otherwisevirtual XNode RemoveNamedItem(const CString &strName) = 0;
Removes the node with the name specified by
strName
from this named node map.
This method implements the C++ binding
for the
removeNamedItem
operation specified by
DOM.
strName
- the name of the node to removevirtual XNode Item(int nIndex) = 0;
Returns the node in this named node map
at the index specified by
nIndex
.
This method implements the C++ binding
for the
item
operation specified by
DOM.
nIndex
- the node index (zero-based)
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |