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

#include <TextVariable.hpp>

Inheritance diagram for anna::TextVariable:
Inheritance graph
[legend]
Collaboration diagram for anna::TextVariable:
Collaboration graph
[legend]

Public Member Functions

TextVariableoperator= (const int value) noexcept(false)
 
TextVariableoperator= (const char *value) noexcept(false)
 
TextVariableoperator= (const anna::String &value) noexcept(false)
 
TextVariableoperator= (const S64 value) noexcept(false)
 
TextVariableoperator= (const float value) noexcept(false)
 
TextVariableoperator= (const double value) noexcept(false)
 
- Public Member Functions inherited from anna::Variable
 Variable (const char *name, std::string &value)
 
 Variable (const char *name, int &value)
 
 Variable (const char *name, S64 &value)
 
 Variable (const char *name, bool &value)
 
 Variable (const char *name, DataBlock &value)
 
 Variable (const char *name, float &value)
 
 Variable (const char *name, double &value)
 
 Variable (const char *name, void *value)
 
 Variable (const char *name, const Type::_v type)
 
virtual ~Variable ()
 
Type::_v getType () const
 
const char * getName () const
 
bool isNull () const
 
const char * getStringValue () const noexcept(false)
 
int getIntegerValue () const noexcept(false)
 
S64 getInteger64Value () const noexcept(false)
 
bool getBooleanValue () const noexcept(false)
 
const DataBlockgetDataBlockValue () const noexcept(false)
 
float getFloatValue () const noexcept(false)
 
double getDoubleValue () const noexcept(false)
 
void * getCustom () noexcept(false)
 
const void * getCustom () const noexcept(false)
 
void setCustom (void *value) noexcept(false)
 
int getInteger () const
 
S64 getInteger64 () const
 
bool getBoolean () const
 
const DataBlockgetDataBlock () const
 
float getFloat () const
 
double getDouble () const
 
void setValue (const char *value) noexcept(false)
 
void setCharPointer (const char *value) noexcept(false)
 
void setValue (const int value) noexcept(false)
 
void setValue (const S64 value) noexcept(false)
 
void setValue (const bool value) noexcept(false)
 
void setValue (const DataBlock &value) noexcept(false)
 
void setValue (const float value) noexcept(false)
 
void setValue (const double value) noexcept(false)
 
void setNull (const bool isNull=true)
 
void setInteger (const int value)
 
void setLong (const S64 value)
 
void setBoolean (const bool value)
 
void setDataBlock (const DataBlock &value)
 
void setFloat (const float value)
 
void setDouble (const double value)
 
bool isEqual (const Variable &right) const
 
virtual String asString () const
 

Protected Member Functions

 TextVariable (const char *name, const Type::_v type, const anna::String &expression)
 
- Protected Member Functions inherited from anna::Variable
void * getReference () const
 
void * buffer () const
 
bool * getNullIndicator ()
 

Friends

class TextComposer
 

Detailed Description

Variable que contiene los valores sobre los que trabaja el util::TextComposer.

Constructor & Destructor Documentation

◆ TextVariable()

anna::TextVariable::TextVariable ( const char *  name,
const Type::_v  type,
const anna::String expression 
)
protected

Constructor.

Parameters
nameNombre de la variable.
typeTipo de dato de la variable.
expressionExpresión asociada a esta variable.

Member Function Documentation

◆ operator=() [1/6]

TextVariable& anna::TextVariable::operator= ( const int  value)
inlinenoexcept

Asignación a entero.

Parameters
valueValor a asignar a esta variable.
30 { setValue(value); return *this; }
void setValue(const char *value) noexcept(false)
Here is the call graph for this function:

◆ operator=() [2/6]

TextVariable& anna::TextVariable::operator= ( const char *  value)
inlinenoexcept

Asignación a cadena.

Parameters
valueValor a asignar a esta variable.
36 { setValue(value); return *this; }
void setValue(const char *value) noexcept(false)
Here is the call graph for this function:

◆ operator=() [3/6]

TextVariable& anna::TextVariable::operator= ( const anna::String value)
inlinenoexcept

Asignación a cadena.

Parameters
valueValor a asignar a esta variable.
42 { setValue(value.c_str()); return *this; }
void setValue(const char *value) noexcept(false)
Here is the call graph for this function:

◆ operator=() [4/6]

TextVariable& anna::TextVariable::operator= ( const S64  value)
inlinenoexcept

Asignación a entero de 64 bits.

Parameters
valueValor a asignar a esta variable.
48 { setValue(value); return *this; }
void setValue(const char *value) noexcept(false)
Here is the call graph for this function:

◆ operator=() [5/6]

TextVariable& anna::TextVariable::operator= ( const float  value)
inlinenoexcept

Asignación a flotante.

Parameters
valueValor a asignar a esta variable.
54 { setValue(value); return *this; }
void setValue(const char *value) noexcept(false)
Here is the call graph for this function:

◆ operator=() [6/6]

TextVariable& anna::TextVariable::operator= ( const double  value)
inlinenoexcept

Asignación a flotante.

Parameters
valueValor a asignar a esta variable.
60 { setValue(value); return *this; }
void setValue(const char *value) noexcept(false)
Here is the call graph for this function:

Friends And Related Function Documentation

◆ TextComposer

friend class TextComposer
friend

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