pcl::XMLCDATA Class Reference

XML CDATA section More...

#include <XML.h>

+ Inheritance diagram for pcl::XMLCDATA:

Public Member Functions

 XMLCDATA (const String &data)
 XMLCDATA (const XMLCDATA &)=default
const StringCData () const
void Serialize (IsoString &text, bool autoFormat, char indentChar, unsigned indentSize, unsigned level) const override
- Public Member Functions inherited from pcl::XMLNode
 XMLNode (node_type type)
 XMLNode (const XMLNode &x)
virtual ~XMLNode ()
bool IsChildNode () const
bool IsComment () const
bool IsElement () const
bool IsText () const
const XMLNodeLocationLocation () const
virtual bool NLAfter (const XMLNode &previous) const
node_type NodeType () const
- Public Member Functions inherited from pcl::XMLComponent
 XMLComponent ()=default
 XMLComponent (const XMLComponent &)=default
bool IsTopLevel () const
XMLElementParentElement () const

Additional Inherited Members

- Public Types inherited from pcl::XMLNode
typedef XMLNodeType::mask_type node_type

Detailed Description

The XMLCDATA class represents a CDATA section in an XML document:


Definition at line 1932 of file XML.h.

Constructor & Destructor Documentation

◆ XMLCDATA() [1/2]

pcl::XMLCDATA::XMLCDATA ( const String data)

Constructs a new XMLCDATA object with the specified character data encoded in UTF-16.

The specified data must not contain the sequence "]]>". Any occurrence of this forbidden sequence will be removed for serialization.

Definition at line 1943 of file XML.h.

◆ XMLCDATA() [2/2]


Copy constructor.

Member Function Documentation

◆ CData()

const String& pcl::XMLCDATA::CData ( ) const

Returns a reference to the (immutable) character data string, encoded as UTF-16, contained by this CDATA section.

Definition at line 1958 of file XML.h.

◆ Serialize()

void pcl::XMLCDATA::Serialize ( IsoString text,
bool  autoFormat,
char  indentChar,
unsigned  indentSize,
unsigned  level 
) const

Serializes this XML CDATA section with UTF-8 encoding.

See XMLNode::Serialize() for information on function parameters.

Implements pcl::XMLNode.

The documentation for this class was generated from the following file: