PCL
pcl::XMLComponent Class Reference

Root base class of all XML document components. More...

#include <XML.h>

+ Inheritance diagram for pcl::XMLComponent:

Public Member Functions

 XMLComponent ()=default
 
 XMLComponent (const XMLComponent &)=default
 
virtual ~XMLComponent ()
 
bool IsTopLevel () const
 
XMLElementParentElement () const
 

Detailed Description

XMLComponent supports the hierarchical structure of an XML document by implementing the basic concept of parent element.

See also
XMLNode

Definition at line 334 of file XML.h.

Constructor & Destructor Documentation

◆ XMLComponent() [1/2]

pcl::XMLComponent::XMLComponent ( )
default

Default constructor. Constructs a default XMLComment object with no parent element.

◆ XMLComponent() [2/2]

pcl::XMLComponent::XMLComponent ( const XMLComponent )
default

Copy constructor.

◆ ~XMLComponent()

virtual pcl::XMLComponent::~XMLComponent ( )
inlinevirtual

Virtual destructor.

Definition at line 352 of file XML.h.

Member Function Documentation

◆ IsTopLevel()

bool pcl::XMLComponent::IsTopLevel ( ) const
inline

Returns true iff this is a top-level component. Top-level document components have no parent elements.

Definition at line 369 of file XML.h.

◆ ParentElement()

XMLElement* pcl::XMLComponent::ParentElement ( ) const
inline

Returns a pointer to the parent XML element of this component, or nullptr if this object has no parent element.

Definition at line 360 of file XML.h.


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