rasdaman complete source
|
#include <structuretype.hh>
Public Types | |
typedef r_IterType< r_Attribute > | attribute_iterator |
typedef for iterator iterating through all attributes; 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_Type & | operator= (const r_Structure_Type &oldObj) |
assignment operator. More... | |
virtual | ~r_Structure_Type () |
destructor. More... | |
virtual r_Type * | clone () 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... | |
Protected Attributes | |
unsigned int | numAttrs |
r_Attribute * | myAttributes |
typedef r_IterType<r_Attribute> r_Structure_Type::attribute_iterator |
typedef for iterator iterating through all attributes;
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 |
destructor.
|
virtual |
clone operation
|
virtual |
check, if this type is compatible with myType (e.g. check the structure ignoring then names of atributtes)
|
virtual |
converts array of cells from Unix byte order to NT byte order.
|
virtual |
converts array of cells from NT byte order to Unix byte order.
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 |
check, if type is primitive or structured.
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 |
writes state of object to specified stream
|
virtual |
prints values of a structured 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 |
retrieve id of the type.
|
protected |
|
protected |