24 #ifndef D_PRIMITIVE_TYPE_HH
25 #define D_PRIMITIVE_TYPE_HH
69 void print_value(
const char *storage, std::ostream &s)
const override;
This class is the superclass of the types r_Structure_Type and r_Primitive_Type in the representation...
Definition: basetype.hh:40
This class represents all primitive types in the ODMG conformant representation of the RasDaMan type ...
Definition: primitivetype.hh:42
void convertToLittleEndian(char *cells, r_Area noCells) const override
converts array of cells from NT byte order to Unix byte order.
void set_ushort(char *cell, r_UShort)
void set_char(char *cell, r_Char)
void set_double(char *cell, r_Double)
r_Float get_float(const char *cell) const
void set_value(char *cell, r_Double)
~r_Primitive_Type() override=default
void print_status(std::ostream &s) const override
writes state of object to specified stream
r_Long get_long(const char *cell) const
void set_short(char *cell, r_Short)
const r_Primitive_Type & operator=(const r_Primitive_Type &oldObj)
void print_value(const char *storage, std::ostream &s) const override
prints value of a primitive type
r_Primitive_Type(const r_Primitive_Type &oldObj)
void set_boolean(char *cell, r_Boolean)
r_Double get_double(const char *cell) const
void get_limits(r_Double &, r_Double &)
r_Char get_char(const char *cell) const
r_Short get_short(const char *cell) const
bool isPrimitiveType() const override
check, if type is primitive.
r_Primitive_Type()=default
default constructor.
r_ULong get_ulong(const char *cell) const
void checkType(r_Type::r_Type_Id cellType) const
r_Boolean get_boolean(const char *cell) const
r_Double get_value(const char *cell) const
void set_ulong(char *cell, r_ULong)
r_Octet get_octet(const char *cell) const
void set_float(char *cell, r_Float)
r_UShort get_ushort(const char *cell) const
void set_long(char *cell, r_Long)
void convertToBigEndian(char *cells, r_Area noCells) const override
converts array of cells from Unix byte order to NT byte order.
r_Type::r_Type_Id type_id() const override
retrieve id of the type.
r_Type::r_Type_Id typeId
Definition: primitivetype.hh:104
r_Type * clone() const override
clone operation
r_Primitive_Type(const char *newTypeName, const r_Type::r_Type_Id newTypeId)
void set_octet(char *cell, r_Octet)
This class the superclass for all types in the ODMG conformant representation of the RasDaMan type sy...
Definition: type.hh:51
r_Type_Id
typedef for the enum specifying a primitive type, structure type, marray type, interval type,...
Definition: type.hh:56
@ UNKNOWNTYPE
Definition: type.hh:78
std::uint64_t r_Area
number of cells in an mdd object or tile.
Definition: mddtypes.hh:49
std::uint32_t r_ULong
Definition: odmgtypes.hh:38
double r_Double
Definition: odmgtypes.hh:40
std::uint16_t r_UShort
Definition: odmgtypes.hh:35
float r_Float
Definition: odmgtypes.hh:39
std::int8_t r_Octet
Definition: odmgtypes.hh:34
std::uint8_t r_Char
Definition: odmgtypes.hh:33
std::int32_t r_Long
Definition: odmgtypes.hh:37
std::uint8_t r_Boolean
Definition: odmgtypes.hh:32
std::int16_t r_Short
Definition: odmgtypes.hh:36
std::ostream & operator<<(std::ostream &str, const r_Primitive_Type &type)