mermaid::support::data::Double Class Reference

Class representing a double data value. More...

#include <Double.hpp>

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

List of all members.

Public Member Functions

Doubleclone ()
 Double copy method.
DataType getType ()
double getValue () const
 Value getter.
virtual operator std::string () const
 Method to convert value to string.
void operator= (double value)
 Atribution operator. This is equivalent to Double::setValue.
void setValue (double 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 double data value.

Author:
Marco Barbosa + Nelson Ramos

Definition at line 48 of file Double.hpp.


Member Function Documentation

Double * Double::clone (  )  [virtual]

Double copy method.

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

Definition at line 38 of file Double.cpp.

double Double::getValue (  )  const

Value getter.

Returns:
Current double value

Definition at line 62 of file Double.cpp.

Double::operator std::string (  )  const [virtual]

Method to convert value to string.

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

Definition at line 68 of file Double.cpp.

void Double::operator= ( double  value  ) 

Atribution operator. This is equivalent to Double::setValue.

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

Definition at line 75 of file Double.cpp.

void Double::setValue ( double  value  ) 

Value setter.

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

Definition at line 56 of file Double.cpp.

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