ANNA Suite  2020b
Multipurpose development suite for Telco applications
Classes | Public Member Functions | List of all members
anna::xml::Compiler Class Reference

#include <Compiler.hpp>

Inheritance diagram for anna::xml::Compiler:
Inheritance graph
[legend]
Collaboration diagram for anna::xml::Compiler:
Collaboration graph
[legend]

Classes

struct  Mode
 

Public Member Functions

 Compiler ()
 
const char * apply (const Node *node, const int flag=Mode::Visual) noexcept(false)
 
const char * apply (const Document &document, const Node *node, const int flag=Mode::Visual) noexcept(false)
 
- Public Member Functions inherited from anna::Mutex
 Mutex (const Mode::_v mode=Mode::Recursive)
 
virtual ~Mutex ()
 
virtual void lock () noexcept(false)
 
virtual void unlock ()
 
bool trylock () noexcept(false)
 
 operator const pthread_mutex_t * () const
 

Additional Inherited Members

- Protected Member Functions inherited from anna::Safe
 Safe ()
 

Detailed Description

Genera el documento XML a correspondiente a un nodo anna::xml::Node.

Constructor & Destructor Documentation

◆ Compiler()

anna::xml::Compiler::Compiler ( )

Constructor.

Member Function Documentation

◆ apply() [1/2]

const char* anna::xml::Compiler::apply ( const Node node,
const int  flag = Mode::Visual 
)
noexcept

Obtiene el documento XML correspondiente al nodo recibido.

Parameters
nodeNodo XML del que queremos obtener el documento XML origen.
flagCombinacion de valores que configura la forma de crear el documento.
Returns
Una cadena con el documento XML correspondiente al nodo recibido.

◆ apply() [2/2]

const char* anna::xml::Compiler::apply ( const Document document,
const Node node,
const int  flag = Mode::Visual 
)
noexcept

Obtiene el documento XML correspondiente al nodo recibido.

Parameters
documentDocumento del que obtener los ajustes de configuración del documento XML.
nodeNodo XML del que queremos obtener el documento XML origen.
flagCombinacion de valores que configura la forma de crear el documento.
Returns
Una cadena con el documento XML correspondiente al nodo recibido.

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