casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DataBlock.h
Go to the documentation of this file.
1 #if !defined(_DATABLOCK_H)
2 
3 #include "stddef.h"
4 
5 class DataBlock
6 {
7  public:
8 
9  DataBlock(){ blockDataPtr_ = NULL; blockSize_ = 0; }
10  DataBlock(short int* blockDataPtr, long int blockSize){ blockDataPtr_= blockDataPtr; blockSize_=blockSize; }
11  ~DataBlock();
12 
13  short int* data() {return blockDataPtr_;}
14  long int size() {return blockSize_;} // in number of short int (units of 16 bits)
15 
16  private:
17  short int* blockDataPtr_;
18  long int blockSize_;
19 
20 };
21 
22 #define _DATABLOCK_H
23 #endif
long int blockSize_
Definition: DataBlock.h:18
DataBlock()
Definition: DataBlock.h:9
short int * data()
Definition: DataBlock.h:13
long int size()
Definition: DataBlock.h:14
short int * blockDataPtr_
Definition: DataBlock.h:17
DataBlock(short int *blockDataPtr, long int blockSize)
Definition: DataBlock.h:10