mermaid::support::data::String Class Reference

Class representing a string data value. More...

#include <String.hpp>

Inheritance diagram for mermaid::support::data::String:
Inheritance graph
[legend]
Collaboration diagram for mermaid::support::data::String:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Stringclone ()
 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

Detailed Description

Class representing a string data value.

Author:
Marco Barbosa + Nelson Ramos

Definition at line 49 of file String.hpp.


Member Function Documentation

String * String::clone (  )  [virtual]

copy method

Implements mermaid::support::data::DataValue.

Definition at line 37 of file String.cpp.

std::string String::getValue (  )  const

Value getter.

Returns:
Current String value

Definition at line 61 of file String.cpp.

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.

Parameters:
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.

Parameters:
value Value to which the String instance should be set

Definition at line 55 of file String.cpp.

Generated on Fri Mar 4 22:15:46 2011 for MeRMaID::support by  doxygen 1.6.3