PCL
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 (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
 

Additional Inherited Members

- Public Types inherited from pcl::XMLNode
using node_type = XMLNodeType::mask_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 2259 of file XML.h.

Constructor & Destructor Documentation

◆ XMLUnknownElement() [1/2]

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

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

Definition at line 2267 of file XML.h.

◆ XMLUnknownElement() [2/2]

pcl::XMLUnknownElement::XMLUnknownElement ( const XMLUnknownElement )
default

Copy constructor.

Member Function Documentation

◆ Name()

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

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

Definition at line 2282 of file XML.h.

◆ Parameters()

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

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

Definition at line 2290 of file XML.h.

◆ Serialize()

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

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: