pcl::XMLProcessingInstructions Class Reference

XML processing instructions More...

#include <XML.h>

+ Inheritance diagram for pcl::XMLProcessingInstructions:

Public Member Functions

 XMLProcessingInstructions (const String &target, const String &instructions)
 XMLProcessingInstructions (const XMLProcessingInstructions &)=default
const StringInstructions () const
void Serialize (IsoString &text, bool autoFormat, char indentChar, unsigned indentSize, unsigned level) const override
const StringTarget () const
- 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 XMLProcessingInstructions class represents a processing instructions (PI) tag in an XML document:


Definition at line 1988 of file XML.h.

Constructor & Destructor Documentation

◆ XMLProcessingInstructions() [1/2]

pcl::XMLProcessingInstructions::XMLProcessingInstructions ( const String target,
const String instructions 

Constructs a new XMLProcessingInstructions object with the specified target name and instructions string, both encoded in UTF-16.

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

Definition at line 2000 of file XML.h.

◆ XMLProcessingInstructions() [2/2]

pcl::XMLProcessingInstructions::XMLProcessingInstructions ( const XMLProcessingInstructions )

Copy constructor.

Member Function Documentation

◆ Instructions()

const String& pcl::XMLProcessingInstructions::Instructions ( ) const

Returns a reference to the (immutable) instructions string.

Definition at line 2023 of file XML.h.

◆ Serialize()

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

Serializes this XML PI section with UTF-8 encoding.

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

Implements pcl::XMLNode.

◆ Target()

const String& pcl::XMLProcessingInstructions::Target ( ) const

Returns a reference to the (immutable) instructions target name.

Definition at line 2015 of file XML.h.

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