public:
CDATASegment(class CElement* elem):mElement(elem) {mIsCDATA=false;};
object constructor; in this form, not really CDATA but a container for CElement, used in the mixed-model mode of a CElement. Bad design...i know.
Name Description elem a CElement object
public:
CDATASegment(const char* cdata, int len):mCDATA(cdata, len), mIsCDATA(true), mElement(NULL) {;};
object constructor
Name Description cdata the CDATA len the character length of the CDATA
public:
std::string& getCDATA() {return mCDATA;};
accessor of the actual CDATA stored by this object
Result: a reference to a basic_stringpublic:
class CElement *getElement() {return mElement;};
returns the CElement stored by this object
Result: returns true if this is a CDATA chunk or a holder of an CElement (cheap, hack form of RTTI, i should be slapped pretty hard)public:
virtual Boolean isCDATA() {return mIsCDATA;};
© 1999-2000, Thomas Bednarz, Jr. (Last Updated 7/16/2000)