|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |
class ICharacterData: public INode { public: const WCHAR *GetData(); void SetData(const WCHAR *pszData); int GetLength(); public: CString SubstringData(int nOffset, int nCount); void AppendData(const WCHAR *pszArg); void InsertData(int nOffset, const WCHAR *pszArg); void DeleteData(int nOffset, int nCount); void ReplaceData( int nOffset, int nCount, const WCHAR *pszArg); }; typedef XRefCnt<ICharacterData> XCharacterData;
The character data node.
This class implements
the C++ binding for the
CharacterData
interface
specified by DOM.
Function Summary | |
const�WCHAR�*
|
GetData
();
����������Returns the content of this character data node. |
void
|
SetData
(const WCHAR *pszData);
����������Sets the new content of this character data node. |
int
|
GetLength
();
����������Returns the length of the content of this character data node. |
CString
|
SubstringData
(int nOffset, int nCount);
����������Returns the part of the content of this character data node, specified by the offset nOffset
and length
nCount
. |
void
|
AppendData
(const WCHAR *pszArg);
����������Appends data to the end of the content of this character data node. |
void
|
InsertData
(int nOffset, const WCHAR *pszArg);
����������Inserts data into the content of this character data node at the offset specified by nOffset
. |
void
|
DeleteData
(int nOffset, int nCount);
����������Deletes part of the content of this character data node at the offset specified by nOffset
with the length
specified by
nCount
. |
void
|
ReplaceData
(int nOffset, int nCount, const WCHAR *pszArg);
����������Replaces part of the content of this character data node at the offset specified by nOffset
having the length
specified by
nCount
. |
Function Detail |
const WCHAR *GetData();
Returns the content of this character data node.
This method implements the C++ binding
for the
data
attribute specified by
DOM.
void SetData(const WCHAR *pszData);
Sets the new content of this character data node.
This method implements the C++ binding
for the
data
attribute specified by
DOM.
This method is not supported by XDM.
pszData
- the new content of this character data nodeint GetLength();
Returns the length of the content of this character data node.
This method implements the C++ binding
for the
length
attribute specified by
DOM.
CString SubstringData(int nOffset, int nCount);
Returns the part of the content of this character data node,
specified by the offset
nOffset
and length
nCount
.
This method implements the C++ binding
for the
substringData
operation specified by
DOM.
nOffset
- the offset of the requested part of the contentnCount
- the length of the requested part of the contentvoid AppendData(const WCHAR *pszArg);
Appends data to the end of the content of this character data node.
This method implements the C++ binding
for the
appendData
operation specified by
DOM.
This method is not supported by XDM.
pszArg
- the data to appendvoid InsertData(int nOffset, const WCHAR *pszArg);
Inserts data into the content of this character
data node at the offset specified by
nOffset
.
This method implements the C++ binding
for the
insertData
operation specified by
DOM.
This method is not supported by XDM.
nOffset
- the offset at which to insertpszArg
- the data to insertvoid DeleteData(int nOffset, int nCount);
Deletes part of the content of this character data node
at the offset specified by
nOffset
with the length
specified by
nCount
.
This method implements the C++ binding
for the
deleteData
operation specified by
DOM.
This method is not supported by XDM.
nOffset
- the offset at which to deletenCount
- the length of the part to be deletedvoid ReplaceData( int nOffset, int nCount, const WCHAR *pszArg);
Replaces part of the content of this character data node
at the offset specified by
nOffset
having the length
specified by
nCount
.
This method implements the C++ binding
for the
replaceData
operation specified by
DOM.
This method is not supported by XDM.
nOffset
- the offset at which to replacenCount
- the length of the part to be replacedpszArg
- the replacement data
|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |