1 #ifndef SZA_UTIL_DATAFRAMEMANAGER_H
2 #define SZA_UTIL_DATAFRAMEMANAGER_H
43 void resize(
unsigned int nBuffer);
48 void pack(
unsigned int* data,
unsigned int ndata,
54 void pack(
unsigned long* data,
unsigned int ndata,
60 void pack(
float* data,
unsigned int ndata,
71 void fillBuffer(
unsigned char val,
unsigned int ndata);
94 void unpack(
unsigned char* data,
unsigned int ndata);
101 void unpack(
unsigned char* data);
158 bool dataIsInitialized_;
160 unsigned currentIndex_;
170 void pack(
void* data,
unsigned int ndata, DataType::Type type,
183 #endif // End #ifndef
Tagged: Tue Jun 22 22:32:16 UTC 2004.
void resize(unsigned int nBuffer)
Resize the data frame.
DataFrame * frame()
Return a handle to the raw data frame managed by this object.
void fillBuffer(unsigned char val, unsigned int ndata)
Fill the next ndata registers with a constant value.
DataFrameManager()
Constructors.
virtual void reinitialize()
Reinitialize.
Tagged: Sat Mar 20 00:16:55 UTC 2004.
This is a base class for managing a generic dataframe of registers.
void setErrorStatus(bool wasError)
Set a global error status for this frame.
unsigned sizeInBytes()
Return the size in bytes of the frame managed by this object.
void unlock()
Unlock the frame.
void lock()
Lock the frame.
virtual ~DataFrameManager()
Destructor.
void advance(unsigned ndata)
Advance the internal buffer ndata elements.
unsigned sizeInBytesOfData()
Return the size in bytes of the data portion only, of the frame managed by this object.
virtual void operator=(DataFrameManager &fm)
Define an overloadable assignment operator.
Tagged: Sat Mar 27 16:28:13 PST 2004.
void pack(unsigned int *data, unsigned int ndata, int startIndex=-1)
Pack an array of unsigned ints.
virtual unsigned int getId()
Get a unique frame id based on integral MJD half-seconds.
void unpack(unsigned char *data, unsigned int ndata)
Unpack the next ndata elements of the frame into a passed byte array (incremental unpack) ...
A generic interface for a data frame consisting of contiguous blocks of arbitrary-sized types...
Tagged: Fri Nov 14 12:39:33 UTC 2003.
unsigned byteOffsetInFrameOfData()
The data portion of the buffer will be offset by the size in bytes of the header. ...