rasdaman complete source
Public Types | Public Member Functions | Protected Attributes | List of all members
r_Structure_Type Class Reference

#include <structuretype.hh>

Inheritance diagram for r_Structure_Type:
r_Base_Type r_Type r_Meta_Object

Public Types

typedef r_IterType< r_Attributeattribute_iterator
 typedef for iterator iterating through all attributes; More...
 
- Public Types inherited from r_Type
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_Structure_Type ()
 default constructor. More...
 
 r_Structure_Type (char *newTypeName, unsigned int newNumAttrs, r_Attribute *newAttrs, int offset=0)
 constructor getting name of type and type id. More...
 
 r_Structure_Type (const r_Structure_Type &oldObj)
 copy constructor More...
 
const r_Structure_Typeoperator= (const r_Structure_Type &oldObj)
 assignment operator. More...
 
virtual ~r_Structure_Type ()
 destructor. More...
 
virtual r_Typeclone () const
 clone operation More...
 
virtual r_Type::r_Type_Id type_id () const
 retrieve id of the type. More...
 
virtual bool isStructType () const
 check, if type is primitive or structured. More...
 
virtual bool compatibleWith (const r_Structure_Type *myType) const
 check, if this type is compatible with myType (e.g. check the structure ignoring then names of atributtes) More...
 
attribute_iterator defines_attribute_begin () const
 returns attribute iterator at begin position. More...
 
attribute_iterator defines_attribute_end () const
 returns attribute iterator at end position (behind last attribute). More...
 
r_Attribute resolve_attribute (const char *name) const throw ( r_Error )
 return attribute specified by name. More...
 
r_Attribute resolve_attribute (unsigned int number) const throw ( r_Error )
 return attribute specified by number starting with zero. More...
 
r_Attribute operator[] (unsigned int number) const throw ( r_Error )
 subscript operator to access attributes by index More...
 
unsigned int count_elements () const
 get number of attributes More...
 
virtual void convertToLittleEndian (char *cells, r_Area noCells) const
 converts array of cells from NT byte order to Unix byte order. More...
 
virtual void convertToBigEndian (char *cells, r_Area noCells) const
 converts array of cells from Unix byte order to NT byte order. More...
 
virtual void print_status (std::ostream &s=std::cout) const
 writes state of object to specified stream More...
 
virtual void print_value (const char *storage, std::ostream &s=std::cout) const
 prints values of a structured type More...
 
- Public Member Functions inherited from r_Base_Type
 r_Base_Type ()
 default constructor. More...
 
 r_Base_Type (const char *newTypeName, r_Bytes newSize)
 constructor getting name of basetype. More...
 
 r_Base_Type (const r_Base_Type &oldObj)
 copy constructor More...
 
const r_Base_Typeoperator= (const r_Base_Type &oldObj)
 assignment operator. More...
 
virtual ~r_Base_Type ()
 destructor. More...
 
virtual bool isBaseType () const
 check, if type is a base type (primitive type or structure type). More...
 
r_Bytes size () const
 retrieve size of the type. More...
 
- Public Member Functions inherited from r_Type
 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 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...
 
- 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...
 

Protected Attributes

unsigned int numAttrs
 
r_AttributemyAttributes
 
- Protected Attributes inherited from r_Base_Type
r_Bytes typeSize
 storing size of type in bytes More...
 
- Protected Attributes inherited from r_Meta_Object
char * typeName
 

Additional Inherited Members

- Static Public Member Functions inherited from r_Type
static r_Typeget_any_type (const char *type_string)
 build type schema from string representation More...
 

Member Typedef Documentation

typedef for iterator iterating through all attributes;

Constructor & Destructor Documentation

r_Structure_Type::r_Structure_Type ( )

default constructor.

r_Structure_Type::r_Structure_Type ( char *  newTypeName,
unsigned int  newNumAttrs,
r_Attribute newAttrs,
int  offset = 0 
)

constructor getting name of type and type id.

r_Structure_Type::r_Structure_Type ( const r_Structure_Type oldObj)

copy constructor

virtual r_Structure_Type::~r_Structure_Type ( )
virtual

destructor.

Member Function Documentation

virtual r_Type* r_Structure_Type::clone ( ) const
virtual

clone operation

Implements r_Type.

virtual bool r_Structure_Type::compatibleWith ( const r_Structure_Type myType) const
virtual

check, if this type is compatible with myType (e.g. check the structure ignoring then names of atributtes)

virtual void r_Structure_Type::convertToBigEndian ( char *  cells,
r_Area  noCells 
) const
virtual

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

Implements r_Type.

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

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

Implements r_Type.

unsigned int r_Structure_Type::count_elements ( ) const

get number of attributes

attribute_iterator r_Structure_Type::defines_attribute_begin ( ) const

returns attribute iterator at begin position.

attribute_iterator r_Structure_Type::defines_attribute_end ( ) const

returns attribute iterator at end position (behind last attribute).

virtual bool r_Structure_Type::isStructType ( ) const
virtual

check, if type is primitive or structured.

Reimplemented from r_Type.

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

assignment operator.

r_Attribute r_Structure_Type::operator[] ( unsigned int  number) const
throw (r_Error
)

subscript operator to access attributes by index

virtual void r_Structure_Type::print_status ( std::ostream &  s = std::cout) const
virtual

writes state of object to specified stream

Implements r_Meta_Object.

virtual void r_Structure_Type::print_value ( const char *  storage,
std::ostream &  s = std::cout 
) const
virtual

prints values of a structured type

Implements r_Base_Type.

r_Attribute r_Structure_Type::resolve_attribute ( const char *  name) const
throw (r_Error
)

return attribute specified by name.

r_Attribute r_Structure_Type::resolve_attribute ( unsigned int  number) const
throw (r_Error
)

return attribute specified by number starting with zero.

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

retrieve id of the type.

Implements r_Type.

Member Data Documentation

r_Attribute* r_Structure_Type::myAttributes
protected
unsigned int r_Structure_Type::numAttrs
protected

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