Unicorn XML Toolkit
Version 1.00.00

Namespace Dom
Class ICharacterData

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.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
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

ICharacterData();

Constructs the character data node.

~ICharacterData

virtual ~ICharacterData();

Destroys the character data node.

Function Detail

GetData

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.

Returns:
the content of this character data node

SetData

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.

Parameters:
strData - the new content of this character data node

GetLength

virtual 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.

Returns:
the length of the content of this character data node

SubstringData

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.

Parameters:
nOffset - the offset of the requested part of the content
nCount - the length of the requested part of the content
Returns:
the requested part of this character data node content

AppendData

virtual 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.

Parameters:
strArg - the data to append

InsertData

virtual 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.

Parameters:
nOffset - the offset at which to insert
strArg - the data to insert

DeleteData

virtual 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.

Parameters:
nOffset - the offset at which to delete
nCount - the length of the part to be deleted

ReplaceData

virtual 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.

Parameters:
nOffset - the offset at which to replace
nCount - the length of the part to be replaced
strArg - the replacement data

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.