libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Friends | List of all members
crn::xml::Text Class Reference

XML text. More...

#include <CRNXml.h>

+ Inheritance diagram for crn::xml::Text:
+ Collaboration diagram for crn::xml::Text:

Public Member Functions

 Text (const Text &)=default
 
 Text (Text &&)=default
 
Textoperator= (const Text &)=default
 
Textoperator= (Text &&)=default
 
virtual ~Text () override
 Destructor. More...
 
bool IsCData () const
 Is the text a CData? More...
 
virtual StringUTF8 GetValue () const override
 Gets the content of the node. More...
 
- Public Member Functions inherited from crn::xml::Node
virtual ~Node ()
 Destructor. More...
 
 Node (const Node &)=default
 
 Node (Node &&)=default
 
Nodeoperator= (const Node &)=default
 
Nodeoperator= (Node &&)=default
 
bool IsElement ()
 Checks if the node is an element. More...
 
bool IsComment ()
 Checks if the node is a comment. More...
 
bool IsText ()
 Checks if the node is a text. More...
 
Element AsElement ()
 Converts to element. More...
 
Comment AsComment ()
 Converts to comment. More...
 
Text AsText ()
 Converts to text. More...
 
 operator bool () const noexcept
 Checks if the node is not null. More...
 
bool operator! () const noexcept
 Checks if the node is null. More...
 
bool operator== (const Node &other) const noexcept
 Comparison operator. More...
 
bool operator!= (const Node &other) const noexcept
 Comparison operator. More...
 
void SetValue (const StringUTF8 &s)
 Sets the content of the node. More...
 
Node GetParent ()
 Gets the parent node if any. More...
 
Node GetPreviousSibling ()
 Gets the previous sibling node. More...
 
Node GetNextSibling ()
 Gets the next sibling node. More...
 
Nodeoperator++ ()
 Moves to the next sibling node. More...
 
Node operator++ (int)
 Moves to the next sibling node. More...
 
Element GetNextSiblingElement (const StringUTF8 &name="")
 Gets the next sibling element. More...
 
Element GetPreviousSiblingElement (const StringUTF8 &name="")
 Gets the previous sibling element. More...
 

Protected Member Functions

 Text (tinyxml2::XMLText *t, const SCharsetConverter &c)
 Constructor. More...
 
- Protected Member Functions inherited from crn::xml::Node
 Node (tinyxml2::XMLNode *n, const SCharsetConverter &c)
 Constructor. More...
 

Friends

class Element
 
class Node
 
class Document
 

Additional Inherited Members

- Protected Attributes inherited from crn::xml::Node
SCharsetConverter conv
 

Detailed Description

XML text.

An XML text

Version
1.0
Author
Yann LEYDIER
Date
August 2012

Definition at line 394 of file CRNXml.h.

Constructor & Destructor Documentation

crn::xml::Text::Text ( const Text )
default
crn::xml::Text::Text ( Text &&  )
default
virtual crn::xml::Text::~Text ( )
inlineoverridevirtual

Destructor.

Definition at line 402 of file CRNXml.h.

Text::Text ( tinyxml2::XMLText t,
const SCharsetConverter &  c 
)
protected

Constructor.

Constructor

Parameters
[in]tthe inner node handle
[in]ca character set converter

Definition at line 872 of file CRNXml.cpp.

Member Function Documentation

StringUTF8 Text::GetValue ( ) const
overridevirtual

Gets the content of the node.

Gets the content of the node

Returns
the content of the node

Reimplemented from crn::xml::Node.

Definition at line 888 of file CRNXml.cpp.

bool Text::IsCData ( ) const

Is the text a CData?

Is the text a CData?

Returns
true is the text is stored as a CData

Definition at line 880 of file CRNXml.cpp.

Text& crn::xml::Text::operator= ( const Text )
default
Text& crn::xml::Text::operator= ( Text &&  )
default

Friends And Related Function Documentation

friend class Document
friend

Definition at line 418 of file CRNXml.h.

friend class Element
friend

Definition at line 416 of file CRNXml.h.

friend class Node
friend

Definition at line 417 of file CRNXml.h.


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