PCL
pcl::XMLCDATA Class Reference

XML CDATA section More...

#include <XML.h>

+ Inheritance diagram for pcl::XMLCDATA:

Public Member Functions

 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 (const XMLNode &x)
 
 XMLNode (node_type type)
 
 ~XMLNode () override
 
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
 
virtual void SerializeAsHTML (IsoString &text, bool autoFormat, char indentChar, unsigned indentSize, unsigned level) const
 
- Public Member Functions inherited from pcl::XMLComponent
 XMLComponent ()=default
 
 XMLComponent (const XMLComponent &)=default
 
virtual ~XMLComponent ()
 
bool IsTopLevel () const
 
XMLElementParentElement () const
 

Public Attributes

 __pad0__: XMLNode( XMLNodeType::CDATA )
 

Additional Inherited Members

- Public Types inherited from pcl::XMLNode
using node_type = XMLNodeType::mask_type
 

Detailed Description

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

https://www.w3.org/TR/xml11/#sec-cdata-sect

Definition at line 2081 of file XML.h.

Constructor & Destructor Documentation

◆ XMLCDATA()

pcl::XMLCDATA::XMLCDATA ( const XMLCDATA )
default

Copy constructor.

Member Function Documentation

◆ CData()

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

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

Definition at line 2107 of file XML.h.

◆ Serialize()

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

Serializes this XML CDATA section with UTF-8 encoding.

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

Implements pcl::XMLNode.

Member Data Documentation

◆ __pad0__

pcl::XMLCDATA::__pad0__

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 2094 of file XML.h.


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