casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
DataBlock.h
Go to the documentation of this file.
00001 #if     !defined(_DATABLOCK_H)
00002  
00003 #include "stddef.h"
00004 
00005 class DataBlock
00006 {
00007  public:
00008 
00009   DataBlock(){ blockDataPtr_ = NULL; blockSize_ = 0; }
00010   DataBlock(short int* blockDataPtr, long int blockSize){ blockDataPtr_= blockDataPtr; blockSize_=blockSize; }
00011   ~DataBlock();
00012 
00013   short int*  data() {return blockDataPtr_;}
00014   long int    size() {return blockSize_;}     // in number of short int (units of 16 bits)
00015 
00016  private:
00017   short int*  blockDataPtr_;
00018   long  int   blockSize_;
00019 
00020 };
00021 
00022 #define _DATABLOCK_H
00023 #endif