Class representing a integer data value. More...
#include <Integer.hpp>
Public Member Functions | |
Integer * | clone () |
Integer copy method. | |
DataType | getType () |
int | getValue () const |
Integer value getter. | |
virtual | operator std::string () const |
Method to convert value to string. | |
void | operator= (int value) |
Atribution operator. This is equivalent to Integer::setValue. | |
void | setValue (int value) |
Integer value setter. | |
Protected Member Functions | |
void | copyFrom (const DataValue &otherValue) |
Protected Attributes | |
DataType | type_ |
Friends | |
class | Data |
class | DataFactory |
Class representing a integer data value.
Definition at line 48 of file Integer.hpp.
Integer * Integer::clone | ( | ) | [virtual] |
Integer copy method.
Implements mermaid::support::data::DataValue.
Definition at line 38 of file Integer.cpp.
int Integer::getValue | ( | ) | const |
Integer::operator std::string | ( | ) | const [virtual] |
Method to convert value to string.
Implements mermaid::support::data::DataValue.
Definition at line 67 of file Integer.cpp.
void Integer::operator= | ( | int | value | ) |
Atribution operator. This is equivalent to Integer::setValue.
value | Value to which the Integer instance should be set |
Definition at line 74 of file Integer.cpp.
void Integer::setValue | ( | int | value | ) |
Integer value setter.
value | Value to which the Integer instance should be set |
Definition at line 56 of file Integer.cpp.