rasdaman complete source
Public Types | Public Member Functions | Static Public Member Functions | List of all members
r_Type Class Referenceabstract

#include <type.hh>

Inheritance diagram for r_Type:
r_Meta_Object r_Base_Type r_Collection_Type r_Marray_Type r_Minterval_Type r_Oid_Type r_Point_Type r_Sinterval_Type r_Primitive_Type r_Structure_Type r_Complex_Type

Public Types

enum  r_Type_Id {
  ULONG, USHORT, BOOL, LONG,
  SHORT, OCTET, DOUBLE, FLOAT,
  CHAR, COMPLEXTYPE1, COMPLEXTYPE2, STRUCTURETYPE,
  MARRAYTYPE, COLLECTIONTYPE, SINTERVALTYPE, MINTERVALTYPE,
  POINTTYPE, OIDTYPE, UNKNOWNTYPE
}
 
enum  DLTOKEN {
  DLMARRAY, DLSET, DLSTRUCT, DLCOMMA,
  DLLEP, DLREP, DLLAP, DLRAP,
  DLLCP, DLRCP, DLIDENTIFIER, DLCHAR,
  DLOCTET, DLSHORT, DLUSHORT, DLLONG,
  DLULONG, DLFLOAT, DLDOUBLE, DLBOOL,
  DLCOMPLEXTYPE1, DLCOMPLEXTYPE2, DLINTERVAL, DLMINTERVAL,
  DLPOINT, DLOID, DLUNKNOWN
}
 token enumeration for parser More...
 

Public Member Functions

 r_Type ()
 default constructor. More...
 
 r_Type (const char *newTypeName)
 constructor getting name of type. More...
 
 r_Type (const r_Type &oldObj)
 copy constructor More...
 
const r_Typeoperator= (const r_Type &oldObj)
 assignment operator. More...
 
virtual ~r_Type ()
 destructor. More...
 
virtual r_Typeclone () const =0
 clone operation More...
 
virtual r_Type::r_Type_Id type_id () const =0
 retrieve id of the type. More...
 
virtual bool isStructType () const
 check, if type is primitive or structured. More...
 
virtual bool isBaseType () const
 check, if type is a base type ( primitive type or structure type). More...
 
virtual bool isComplexType () const
 check, if type is a base type ( primitive type or structure type). More...
 
virtual bool isMarrayType () const
 check, if type is a marray type. More...
 
virtual bool isPrimitiveType () const
 check, if type is a primitive type. More...
 
virtual bool isSintervalType () const
 check, if type is a Sinterval More...
 
virtual bool isMintervalType () const
 check, if type is a Minterval More...
 
virtual bool isCollectionType () const
 check, if type is a Colelction type More...
 
virtual bool isPointType () const
 check, if type is a Point More...
 
virtual bool isOidType () const
 check, if type is a oid More...
 
virtual void convertToLittleEndian (char *cells, r_Area noCells) const =0
 converts array of cells from NT byte order to Unix byte order. More...
 
virtual void convertToBigEndian (char *cells, r_Area noCells) const =0
 converts array of cells from Unix byte order to NT byte order. More...
 
- Public Member Functions inherited from r_Meta_Object
 r_Meta_Object ()
 default constructor. More...
 
 r_Meta_Object (const char *newTypeName)
 constructor getting name of type. More...
 
 r_Meta_Object (const r_Meta_Object &oldObj)
 copy constructor More...
 
const r_Meta_Objectoperator= (const r_Meta_Object &oldObj)
 assignment operator. More...
 
virtual ~r_Meta_Object ()
 destructor. More...
 
const char * name () const
 retrieve name of the type. More...
 
virtual void print_status (std::ostream &s=std::cout) const =0
 writes state of object to specified stream More...
 

Static Public Member Functions

static r_Typeget_any_type (const char *type_string)
 build type schema from string representation More...
 

Additional Inherited Members

- Protected Attributes inherited from r_Meta_Object
char * typeName
 

Detailed Description

This class the superclass for all types in the ODMG conformant representation of the RasDaMan type system.

Member Enumeration Documentation

token enumeration for parser

Enumerator
DLMARRAY 
DLSET 
DLSTRUCT 
DLCOMMA 
DLLEP 
DLREP 
DLLAP 
DLRAP 
DLLCP 
DLRCP 
DLIDENTIFIER 
DLCHAR 
DLOCTET 
DLSHORT 
DLUSHORT 
DLLONG 
DLULONG 
DLFLOAT 
DLDOUBLE 
DLBOOL 
DLCOMPLEXTYPE1 
DLCOMPLEXTYPE2 
DLINTERVAL 
DLMINTERVAL 
DLPOINT 
DLOID 
DLUNKNOWN 

typedef for the enum specifying a primitive type, structure type, marray type, interval type, minterval type, point type or oid type

Enumerator
ULONG 
USHORT 
BOOL 
LONG 
SHORT 
OCTET 
DOUBLE 
FLOAT 
CHAR 
COMPLEXTYPE1 
COMPLEXTYPE2 
STRUCTURETYPE 
MARRAYTYPE 
COLLECTIONTYPE 
SINTERVALTYPE 
MINTERVALTYPE 
POINTTYPE 
OIDTYPE 
UNKNOWNTYPE 

Constructor & Destructor Documentation

r_Type::r_Type ( )

default constructor.

r_Type::r_Type ( const char *  newTypeName)

constructor getting name of type.

r_Type::r_Type ( const r_Type oldObj)

copy constructor

virtual r_Type::~r_Type ( )
virtual

destructor.

Member Function Documentation

virtual r_Type* r_Type::clone ( ) const
pure virtual
virtual void r_Type::convertToBigEndian ( char *  cells,
r_Area  noCells 
) const
pure virtual

converts array of cells from Unix byte order to NT byte order.

Implemented in r_Structure_Type, r_Collection_Type, r_Marray_Type, r_Primitive_Type, r_Minterval_Type, r_Oid_Type, r_Point_Type, r_Sinterval_Type, and r_Complex_Type.

virtual void r_Type::convertToLittleEndian ( char *  cells,
r_Area  noCells 
) const
pure virtual

converts array of cells from NT byte order to Unix byte order.

Implemented in r_Structure_Type, r_Collection_Type, r_Marray_Type, r_Primitive_Type, r_Minterval_Type, r_Oid_Type, r_Point_Type, r_Sinterval_Type, and r_Complex_Type.

static r_Type* r_Type::get_any_type ( const char *  type_string)
static

build type schema from string representation

virtual bool r_Type::isBaseType ( ) const
virtual

check, if type is a base type ( primitive type or structure type).

Reimplemented in r_Base_Type.

virtual bool r_Type::isCollectionType ( ) const
virtual

check, if type is a Colelction type

Reimplemented in r_Collection_Type.

virtual bool r_Type::isComplexType ( ) const
virtual

check, if type is a base type ( primitive type or structure type).

Reimplemented in r_Complex_Type.

virtual bool r_Type::isMarrayType ( ) const
virtual

check, if type is a marray type.

Reimplemented in r_Marray_Type.

virtual bool r_Type::isMintervalType ( ) const
virtual

check, if type is a Minterval

Reimplemented in r_Minterval_Type.

virtual bool r_Type::isOidType ( ) const
virtual

check, if type is a oid

Reimplemented in r_Oid_Type.

virtual bool r_Type::isPointType ( ) const
virtual

check, if type is a Point

Reimplemented in r_Point_Type.

virtual bool r_Type::isPrimitiveType ( ) const
virtual

check, if type is a primitive type.

Reimplemented in r_Primitive_Type.

virtual bool r_Type::isSintervalType ( ) const
virtual

check, if type is a Sinterval

Reimplemented in r_Sinterval_Type.

virtual bool r_Type::isStructType ( ) const
virtual

check, if type is primitive or structured.

Reimplemented in r_Structure_Type.

const r_Type& r_Type::operator= ( const r_Type oldObj)

assignment operator.

virtual r_Type::r_Type_Id r_Type::type_id ( ) const
pure virtual

The documentation for this class was generated from the following file: