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

#include <Parser.hpp>

Inheritance diagram for anna::html::Parser:
Inheritance graph
[legend]
Collaboration diagram for anna::html::Parser:
Collaboration graph
[legend]

Public Member Functions

 Parser ()
 
const html::NodegetHead () noexcept(false)
 
const html::NodegetBody () noexcept(false)
 
- Public Member Functions inherited from anna::xml::Parser
 Parser ()
 
virtual ~Parser ()
 
const NodegetRoot () const
 
const Nodeapply (const Document &document) noexcept(false)
 
const Nodeapply (const Document &document, const DTD &dtd) 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::xml::Parser
void setupEncoding (_xmlDoc *document)
 
const char * decode (const unsigned char *source)
 
void attributes (Node *node, _xmlAttr *attribute) noexcept(false)
 
void children (Node *node, _xmlNode *xmlNode) noexcept(false)
 
- Protected Member Functions inherited from anna::Safe
 Safe ()
 
- Protected Attributes inherited from anna::xml::Parser
Nodea_root
 

Detailed Description

Analizador de documentos HTML.

Analiza la expresion contenida en un documento HTML y devuelve un arbol de nodos que resulta muy facil de usar.

Constructor & Destructor Documentation

◆ Parser()

anna::html::Parser::Parser ( )
inline

Constructor.

30 { a_head = a_body = NULL; }
Here is the call graph for this function:

Member Function Documentation

◆ getBody()

const html::Node* anna::html::Parser::getBody ( )
noexcept

Obtiene el nodo BODY del documento HTML analizado. Si no esta establecido lanzara una excepcion.

Returns
el nodo BODY del documento HTML analizado.
Warning
  • Solo deberia ser llamado despues de Parser::apply.
  • El nodo devuelto no puede ser usado despues de invocar al destructor de este Parser.

◆ getHead()

const html::Node* anna::html::Parser::getHead ( )
noexcept

Obtiene el nodo HEAD del documento HTML analizado. Si no esta establecido lanzara una excepcion.

Returns
el nodo HEAD del documento HTML analizado.
Warning
  • Solo deberia ser llamado despues de Parser::apply.
  • El nodo devuelto no puede ser usado despues de invocar al destructor de este Parser.

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