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