|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class ICharacterData: virtual public INode { public: ICharacterData(); virtual ~ICharacterData(); public: virtual CString GetData() = 0; virtual void SetData(const CString &strData) = 0; virtual int GetLength() = 0; public: virtual CString SubstringData(int nOffset, int nCount) = 0; virtual void AppendData(const CString &strArg) = 0; virtual void InsertData(int nOffset, const CString &strArg) = 0; virtual void DeleteData(int nOffset, int nCount) = 0; virtual void ReplaceData( int nOffset, int nCount, const CString &strArg) = 0; };
The character data node.
This class implements
the C++ binding for the
CharacterData
interface
specified by DOM.
Constructor/Destructor Summary | |
ICharacterData
();
����������Constructs the character data node. |
|
~ICharacterData
();
����������Destroys the character data node. |
Function Summary | |
CString
|
GetData
();
����������Returns the content of this character data node. |
void
|
SetData
(const CString &strData);
����������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 CString &strArg);
����������Appends data to the end of the content of this character data node. |
void
|
InsertData
(int nOffset, const CString &strArg);
����������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 CString &strArg);
����������Replaces part of the content of this character data node at the offset specified by nOffset
having the length
specified by
nCount
. |
Constructor/Destructor Detail |
ICharacterData();
Constructs the character data node.
virtual ~ICharacterData();
Destroys the character data node.
Function Detail |
virtual CString GetData() = 0;
Returns the content of this character data node.
This method implements the C++ binding
for the
data
attribute specified by
DOM.
virtual void SetData(const CString &strData) = 0;
Sets the new content of this character data node.
This method implements the C++ binding
for the
data
attribute specified by
DOM.
strData
- the new content of this character data nodevirtual int GetLength() = 0;
Returns the length of the content of this character data node.
This method implements the C++ binding
for the
length
attribute specified by
DOM.
virtual CString SubstringData(int nOffset, int nCount) = 0;
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 contentvirtual void AppendData(const CString &strArg) = 0;
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.
strArg
- the data to appendvirtual void InsertData(int nOffset, const CString &strArg) = 0;
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.
nOffset
- the offset at which to insertstrArg
- the data to insertvirtual void DeleteData(int nOffset, int nCount) = 0;
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.
nOffset
- the offset at which to deletenCount
- the length of the part to be deletedvirtual void ReplaceData( int nOffset, int nCount, const CString &strArg) = 0;
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.
nOffset
- the offset at which to replacenCount
- the length of the part to be replacedstrArg
- the replacement data
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |