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

#include <attribute.hh>

Inheritance diagram for r_Attribute:
r_Property r_Meta_Object

Public Member Functions

 r_Attribute ()
 default constructor. initialise important attributes to NULL More...
 
 r_Attribute (const char *newTypeName, const r_Base_Type &newType)
 constructor getting name and type of attribute. More...
 
 r_Attribute (const r_Attribute &oldObj)
 copy constructor. More...
 
const r_Attributeoperator= (const r_Attribute &oldObj)
 assignment operator. More...
 
virtual ~r_Attribute ()
 destructor. More...
 
r_Bytes offset () const
 retrieve (local) offset More...
 
void set_offset (r_Bytes newOffset)
 set (local) offset More...
 
r_Bytes global_offset () const
 retrieve global offset More...
 
void set_global_offset (r_Bytes newOffset)
 set global offset More...
 
virtual void print_status (std::ostream &s=std::cout) const
 writes state of object to specified stream More...
 
r_Attribute operator[] (unsigned int number) const throw (r_Error)
 subscript operator to access attributes of a structured attribute throws error when type is not a struct type More...
 
r_Boolean get_boolean (const char *cell) const throw (r_Error)
 
r_Char get_char (const char *cell) const throw (r_Error)
 
r_Octet get_octet (const char *cell) const throw (r_Error)
 
r_Short get_short (const char *cell) const throw (r_Error)
 
r_UShort get_ushort (const char *cell) const throw (r_Error)
 
r_Long get_long (const char *cell) const throw (r_Error)
 
r_ULong get_ulong (const char *cell) const throw (r_Error)
 
r_Float get_float (const char *cell) const throw (r_Error)
 
r_Double get_double (const char *cell) const throw (r_Error)
 
- Public Member Functions inherited from r_Property
 r_Property (const char *newTypeName, const r_Base_Type &newType)
 constructor getting name and type of property. More...
 
 r_Property (const r_Property &oldObj)
 copy constructor. More...
 
const r_Propertyoperator= (const r_Property &oldObj)
 assignment operator. More...
 
virtual ~r_Property ()
 destructor. More...
 
const r_Base_Typetype_of () const
 retrieve type of property. 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

r_Bytes localOffset
 local offset More...
 
r_Bytes globalOffset
 global offset More...
 
- Protected Attributes inherited from r_Property
r_Base_TypemyType
 
- Protected Attributes inherited from r_Meta_Object
char * typeName
 

Additional Inherited Members

- Protected Member Functions inherited from r_Property
 r_Property ()
 default constructor. More...
 

Constructor & Destructor Documentation

r_Attribute::r_Attribute ( )

default constructor. initialise important attributes to NULL

r_Attribute::r_Attribute ( const char *  newTypeName,
const r_Base_Type newType 
)

constructor getting name and type of attribute.

r_Attribute::r_Attribute ( const r_Attribute oldObj)

copy constructor.

virtual r_Attribute::~r_Attribute ( )
virtual

destructor.

Member Function Documentation

r_Boolean r_Attribute::get_boolean ( const char *  cell) const
throw (r_Error
)
r_Char r_Attribute::get_char ( const char *  cell) const
throw (r_Error
)
r_Double r_Attribute::get_double ( const char *  cell) const
throw (r_Error
)
r_Float r_Attribute::get_float ( const char *  cell) const
throw (r_Error
)
r_Long r_Attribute::get_long ( const char *  cell) const
throw (r_Error
)
r_Octet r_Attribute::get_octet ( const char *  cell) const
throw (r_Error
)
r_Short r_Attribute::get_short ( const char *  cell) const
throw (r_Error
)
r_ULong r_Attribute::get_ulong ( const char *  cell) const
throw (r_Error
)
r_UShort r_Attribute::get_ushort ( const char *  cell) const
throw (r_Error
)
r_Bytes r_Attribute::global_offset ( ) const

retrieve global offset

r_Bytes r_Attribute::offset ( ) const

retrieve (local) offset

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

assignment operator.

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

subscript operator to access attributes of a structured attribute throws error when type is not a struct type

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

writes state of object to specified stream

Implements r_Meta_Object.

void r_Attribute::set_global_offset ( r_Bytes  newOffset)

set global offset

void r_Attribute::set_offset ( r_Bytes  newOffset)

set (local) offset

Member Data Documentation

r_Bytes r_Attribute::globalOffset
protected

global offset

r_Bytes r_Attribute::localOffset
protected

local offset


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