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

#include <Attribute.hpp>

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

Public Member Functions

const char * getName () const
 
const NamespacegetNamespace () const
 
const std::string & getNameAsString () const
 
std::string asString () const
 
- Public Member Functions inherited from anna::xml::Data
const std::string & getValue () const
 
const char * getCStringValue () const
 
int getIntegerValue () const
 
void setValue (const char *value)
 
void setValue (const std::string &value)
 
void setValue (const int value)
 

Friends

class Node
 
class Allocator< Attribute >
 

Additional Inherited Members

- Protected Member Functions inherited from anna::xml::Data
 Data ()
 

Detailed Description

Atributo de nodo XML.

Cada nodo XML puede tener una serie indeterminada de atributos. Por ejemplo:

<broadcast>
<INetAddress Address="204.152.65.15" Port="2000"/>
<INetAddress Address="204.152.65.47" Port="2002"/>
</broadcast>

Cada uno de los nodos INetAddress tiene dos atributos (Address y Port).

Member Function Documentation

◆ asString()

std::string anna::xml::Attribute::asString ( ) const
virtual

Devuelve una cadena con toda la informacion relevante de esta instancia.

Returns
Una cadena con toda la informacion relevante de esta instancia.

Reimplemented from anna::xml::Data.

◆ getName()

const char* anna::xml::Attribute::getName ( void  ) const
inline

Devuelve el nombre de este atributo.

Returns
Nombre de este atributo.
41 { return a_name.c_str(); }

◆ getNameAsString()

const std::string& anna::xml::Attribute::getNameAsString ( ) const
inline

Devuelve el nombre del nodo.

Returns
El nombre del nodo.
53 { return a_name; }
Here is the call graph for this function:

◆ getNamespace()

const Namespace* anna::xml::Attribute::getNamespace ( ) const
inline

Devuelve el namespace asociado a este atributo. Puede ser NULL.

Returns
el namespace asociado a este atributo. Puede ser NULL.
47 { return a_namespace; }

Friends And Related Function Documentation

◆ Allocator< Attribute >

friend class Allocator< Attribute >
friend

◆ Node

friend class Node
friend

Representacion de un nodo de HTML.

See also
xml::Node;

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