mermaid::support::data::Integer Class Reference

Class representing a integer data value. More...

#include <Integer.hpp>

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

List of all members.

Public Member Functions

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

Detailed Description

Class representing a integer data value.

Author:
Marco Barbosa + Nelson Ramos

Definition at line 48 of file Integer.hpp.


Member Function Documentation

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 value getter.

Returns:
Current Integer value

Definition at line 62 of file Integer.cpp.

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.

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

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

Definition at line 56 of file Integer.cpp.

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