pcl::XMLUnknownElement Class Reference

Unsupported or invalid XML element. More...

#include <XML.h>

+ Inheritance diagram for pcl::XMLUnknownElement:

Public Member Functions

 XMLUnknownElement (const String &name, const String &parameters=String())
 XMLUnknownElement (const XMLUnknownElement &)=default
const StringName () const
const StringParameters () 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

XMLUnknownElement represents an invalid or unrecognized XML element retrieved while parsing an XML document. In the current PCL implementation, an XMLUnknownElement object is generated if the parser finds an element whose start-tag begins with the "<!" token and is neither a comment section nor a DOCTYPE declaration.

Definition at line 2110 of file XML.h.

Constructor & Destructor Documentation

◆ XMLUnknownElement() [1/2]

pcl::XMLUnknownElement::XMLUnknownElement ( const String name,
const String parameters = String() 

Constructs an XMLUnknownElement with the specified qualified name and element parameters.

Definition at line 2118 of file XML.h.

◆ XMLUnknownElement() [2/2]

pcl::XMLUnknownElement::XMLUnknownElement ( const XMLUnknownElement )

Copy constructor.

Member Function Documentation

◆ Name()

const String& pcl::XMLUnknownElement::Name ( ) const

Returns a reference to the (immutable) unknown element name.

Definition at line 2133 of file XML.h.

◆ Parameters()

const String& pcl::XMLUnknownElement::Parameters ( ) const

Returns a reference to the (immutable) unknown element parameters.

Definition at line 2141 of file XML.h.

◆ Serialize()

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

Serializes this XML unknown element 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: