26 #ifndef __TERRALIB_DATATYPE_INTERNAL_SIMPLEDATA_H
27 #define __TERRALIB_DATATYPE_INTERNAL_SIMPLEDATA_H
37 #include <boost/cstdint.hpp>
38 #include <boost/lexical_cast.hpp>
131 return boost::lexical_cast<std::string>(
m_val);
202 std::stringstream stream(std::ios_base::in | std::ios_base::out);
234 #endif // __TERRALIB_DATATYPE_INTERNAL_SIMPLEDATA_H
SimpleData(const SimpleData &rhs)
Copy constructor.
SimpleData< std::string, STRING_TYPE > String
SimpleData< unsigned char, UCHAR_TYPE > UChar
SimpleData & operator=(const SimpleData &rhs)
Copy constructor.
A base class for objects that can be retrieved from the data access module.
virtual int getTypeCode() const
It returns the data type code associated to the data value.
virtual std::string toString() const
It returns the data value in a string notation.
SimpleData< boost::int64_t, INT64_TYPE > Int64
SimpleData< boost::int32_t, INT32_TYPE > Int32
T getValue() const
It returns the associated value.
SimpleData< float, FLOAT_TYPE > Float
virtual std::string toString() const
It returns the data value in a string representation.
SimpleData< std::string, NUMERIC_TYPE > Numeric
AbstractData * clone() const
It returns a clone of this object.
SimpleData & operator=(const SimpleData &rhs)
SimpleData< boost::uint64_t, UINT64_TYPE > UInt64
AbstractData * clone() const
It returns a clone of this object.
A base class for values that can be retrieved from the data access module.
SimpleData< bool, BOOLEAN_TYPE > Boolean
virtual ~SimpleData()
Virtual destructor.
SimpleData< double, DOUBLE_TYPE > Double
SimpleData< char, CHAR_TYPE > Char
SimpleData< boost::uint16_t, UINT16_TYPE > UInt16
General enumerations for the data type module.
A template for atomic data types (integers, floats, strings and others).
SimpleData< boost::int16_t, INT16_TYPE > Int16
SimpleData(T value)
Constructor.
virtual int getTypeCode() const
It returns the data type code associated to the data value.
SimpleData< boost::uint32_t, UINT32_TYPE > UInt32
SimpleData(const SimpleData &rhs)