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

#include <dbtile.hh>

Inheritance diagram for DBTile:
DBObject BLOBTile InlineTile

Public Member Functions

virtual ~DBTile ()
 
void resize (r_Bytes newSize)
 
virtual r_Bytes getMemorySize () const
 
virtual void printStatus (unsigned int level=0, std::ostream &stream=std::cout) const
 
void setNoModificationData (char *data) const
 
void setNoModificationSize (r_Bytes newSize) const
 
char * getCells ()
 get contents as array of chars for read access. More...
 
const char * getCells () const
 get contents as array of chars for read access. More...
 
char getCell (r_Bytes index) const
 get one char in the contents of the DBTile. More...
 
r_Data_Format getDataFormat () const
 
r_Data_Format getCurrentFormat () const
 
void setDataFormat (const r_Data_Format &dataformat)
 
void setCurrentFormat (const r_Data_Format &dataformat) const
 
r_Bytes getSize () const
 get size of contents of DBTile in chars. More...
 
void setCell (r_Bytes index, char newCell)
 change one char in the contents of the DBTile. More...
 
void setCells (char *newCells)
 
 DBTile (r_Data_Format dataformat=r_Array)
 
 DBTile (const OId &BlobId) throw (r_Error)
 
 DBTile (r_Bytes newSize, char c=0, r_Data_Format dataformat=r_Array)
 
 DBTile (r_Bytes newSize, r_Bytes patSize, const char *pat, r_Data_Format dataformat=r_Array)
 
 DBTile (r_Bytes newSize, const char *newCells, r_Data_Format dataformat=r_Array)
 
- Public Member Functions inherited from DBObject
virtual void destroy (void)
 
int getReferenceCount (void) const
 
void incrementReferenceCount (void)
 
void decrementReferenceCount (void)
 
virtual ~DBObject ()
 
 DBObject ()
 
 DBObject (const DBObject &old)
 
 DBObject (const OId &id) throw (r_Error)
 
virtual void setPersistent (bool newPersistent) throw (r_Error)
 
bool isPersistent () const
 
void validate () throw (r_Error)
 
virtual void setModified () throw (r_Error)
 
bool isModified () const
 
OId getOId () const
 
EOId getEOId () const
 
OId::OIdType getObjectType () const
 
DBObjectoperator= (const DBObject &old)
 
bool isCached () const
 
virtual void setCached (bool newCached)
 
virtual r_Bytes getTotalStorageSize () const
 
virtual BinaryRepresentation getBinaryRepresentation () const throw (r_Error)
 
virtual void setBinaryRepresentation (const BinaryRepresentation &) throw (r_Error)
 
virtual char * getBinaryName () const
 

Protected Attributes

r_Bytes size
 
char * cells
 
r_Data_Format dataFormat
 
r_Data_Format currentFormat
 
- Protected Attributes inherited from DBObject
bool _isPersistent
 
bool _isInDatabase
 
bool _isModified
 
bool _isCached
 
OId myOId
 
OId::OIdType objecttype
 
int referenceCount
 

Friends

std::ostream & operator<< (std::ostream &stream, DBTile &b)
 

Additional Inherited Members

- Protected Member Functions inherited from DBObject
virtual void release ()
 
virtual void readFromDb () throw (r_Error)
 
virtual void insertInDb () throw (r_Error)
 
virtual void deleteFromDb () throw (r_Error)
 
virtual void updateInDb () throw (r_Error)
 

Constructor & Destructor Documentation

DBTile::DBTile ( r_Data_Format  dataformat = r_Array)
DBTile::DBTile ( const OId BlobId)
throw (r_Error
)
DBTile::DBTile ( r_Bytes  newSize,
char  c = 0,
r_Data_Format  dataformat = r_Array 
)
DBTile::DBTile ( r_Bytes  newSize,
r_Bytes  patSize,
const char *  pat,
r_Data_Format  dataformat = r_Array 
)
DBTile::DBTile ( r_Bytes  newSize,
const char *  newCells,
r_Data_Format  dataformat = r_Array 
)
virtual DBTile::~DBTile ( )
virtual

Member Function Documentation

char DBTile::getCell ( r_Bytes  index) const

get one char in the contents of the DBTile.

char* DBTile::getCells ( )

get contents as array of chars for read access.

const char* DBTile::getCells ( ) const

get contents as array of chars for read access.

r_Data_Format DBTile::getCurrentFormat ( ) const
r_Data_Format DBTile::getDataFormat ( ) const
virtual r_Bytes DBTile::getMemorySize ( ) const
virtual

Reimplemented from DBObject.

r_Bytes DBTile::getSize ( ) const

get size of contents of DBTile in chars.

virtual void DBTile::printStatus ( unsigned int  level = 0,
std::ostream &  stream = std::cout 
) const
virtual

Reimplemented from DBObject.

Reimplemented in InlineTile.

void DBTile::resize ( r_Bytes  newSize)
void DBTile::setCell ( r_Bytes  index,
char  newCell 
)

change one char in the contents of the DBTile.

void DBTile::setCells ( char *  newCells)
void DBTile::setCurrentFormat ( const r_Data_Format &  dataformat) const
void DBTile::setDataFormat ( const r_Data_Format &  dataformat)
void DBTile::setNoModificationData ( char *  data) const
void DBTile::setNoModificationSize ( r_Bytes  newSize) const

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
DBTile b 
)
friend

Member Data Documentation

char* DBTile::cells
mutableprotected
r_Data_Format DBTile::currentFormat
mutableprotected
r_Data_Format DBTile::dataFormat
protected
r_Bytes DBTile::size
mutableprotected

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