|
ldas-tools-framecpp 3.0.4
|
Vector Data Structure Definition. More...
#include <FrVect.hh>
Public Member Functions | |
| const name_type & | GetName () const |
| Retrieve the name of message, error flag, or alarm state. | |
| FrVect () | |
| Default constructor. | |
| FrVect (const FrVect &vect) | |
| Copy Constructor. | |
| FrVect (const std::string &name, type_type type, nDim_type nDim, const Dimension *dims, const byte_order_type byte_order=BYTE_ORDER_HOST, const void *data=0, const std::string &unitY="") | |
| Constructor. | |
| FrVect (const std::string &Name, type_type Type, nDim_type NDim, const Dimension *Dims, const std::string &UnitY) | |
| Constructor. | |
| FrVect (const Previous::FrVect &Source, stream_base_type *Stream) | |
| Promotion Constructor. | |
| virtual | ~FrVect () |
| Destructor. | |
| subfrvect_type | SubFrVect (INT_4U Start, INT_4U Stop) const |
| Request a subset of the data. | |
| bool | operator== (const FrVect &RHS) const |
| equality operator | |
| bool | operator!= (const FrVect &RHS) const |
| inequality operator | |
| FrVect & | operator+= (const FrVect &RHS) |
| Concatinate with another FrAdcData. | |
| FrVect & | Merge (const FrVect &RHS) |
| Merge with another FrAdcData. | |
| const name_type & | GetName () const |
| Retrieve the name of message, error flag, or alarm state. | |
| FrVect () | |
| Default constructor. | |
| FrVect (const FrVect &vect) | |
| Copy Constructor. | |
| FrVect (const std::string &name, type_type type, nDim_type nDim, const Dimension *dims, const byte_order_type byte_order=BYTE_ORDER_HOST, const void *data=0, const std::string &unitY="") | |
| Constructor. | |
| FrVect (const std::string &Name, type_type Type, nDim_type NDim, const Dimension *Dims, const std::string &UnitY) | |
| Constructor. | |
| FrVect (const Previous::FrVect &Source, stream_base_type *Stream) | |
| Promotion Constructor. | |
| virtual | ~FrVect () |
| Destructor. | |
| subfrvect_type | SubFrVect (INT_4U Start, INT_4U Stop) const |
| Request a subset of the data. | |
| bool | operator== (const FrVect &RHS) const |
| equality operator | |
| bool | operator!= (const FrVect &RHS) const |
| inequality operator | |
| FrVect & | operator+= (const FrVect &RHS) |
| Concatinate with another FrAdcData. | |
| FrVect & | Merge (const FrVect &RHS) |
| Merge with another FrAdcData. | |
| virtual bool | operator== (const Common::FrameSpec::Object &RHS) const |
| equality operator for abstract data type | |
| virtual streamsize_type | Bytes (const StreamBase &Stream) const |
| Return the number of bytes for this object. | |
| virtual self_type * | Create (istream_type &Stream) const |
| Virtual constructor. | |
| virtual self_type * | Create (istream_type &Stream) const |
| Virtual constructor. | |
| virtual self_type * | Create (istream_type &Stream) const |
| Virtual constructor. | |
| virtual self_type * | Create (istream_type &Stream) const |
| Virtual constructor. | |
| virtual self_type * | Create (istream_type &Stream) const |
| Virtual constructor. | |
| virtual self_type * | Create (istream_type &Stream) const |
| Virtual constructor. | |
| virtual void | Write (ostream_type &Stream) const |
| Write object to the stream. | |
| virtual void | Write (ostream_type &Stream) const |
| Write object to the stream. | |
| virtual void | Write (ostream_type &Stream) const |
| Write object to the stream. | |
| virtual void | Write (ostream_type &Stream) const |
| Write object to the stream. | |
| virtual void | Write (ostream_type &Stream) const |
| Write object to the stream. | |
| virtual void | Write (ostream_type &Stream) const |
| Write object to the stream. | |
| compress_type | GetCompress () const |
| Retrieve the compression algorithm number. | |
| type_type | GetType () const |
| Retrieve the vector class. | |
| nBytes_type | GetNBytes () const |
| Retrieve the number of bytes in the compressed vector. | |
| nData_type | GetNData () const |
| Retrieve the number of sample elements in data series. | |
| nData_type | GetNDataValid () const |
| Retrieve the number of sample elements in data valid series. | |
| nBytes_type | GetNDataValidBytes () const |
| Retrieve the number of bytes in the compressed dataValid vector. | |
| data_type | GetData () const |
| Retrieve the pointer to the data. | |
| data_valid_type | GetDataValid () |
| Retrieve the pointer to the data. | |
| data_valid_type | GetDataValidRaw () |
| Retrieve the pointer to the data. | |
| const CHAR_U * | GetDataValidUncompressed (data_valid_type &Expanded) |
| Retrieve the pointer to the data. | |
| compress_type | GetDataValidCompress () const |
| Retrieve the dataValid compression algorithm number. | |
| data_type | GetDataRaw () const |
| Retrieve the pointer to the compressed data. | |
| data_type | GetDataRaw () |
| Retrieve the pointer to the compressed data. | |
| data_type | GetDataUncompressed () |
| Retrieve the pointer to the uncompressed data. | |
| const CHAR_U * | GetDataUncompressed (data_type &Expanded) const |
| Retrieve the pointer to the uncompressed data. | |
| nDim_type | GetNDim () const |
| Retrieve the number of dimensions. | |
| const Dimension & | GetDim (nDim_type Offset) const |
| Retrieve the Nth dimension. | |
| Dimension & | GetDim (nDim_type Offset) |
| Retrieve the Nth dimension. | |
| dimension_container_type & | GetDims () |
| Retrieve all the dimension information. | |
| const unit_y_type & | GetUnitY () const |
| Retrieve the description of how to interpret each element. | |
| void | Uncompress () |
| Expand compressed data. | |
| void | MimeData (const std::string &MimeType, void *Data, nBytes_type DataSize) |
| Set the current FrVect with the MIME data. | |
| void | SetName (const name_type &Name) |
| Establish the channel name. | |
| void | SetUnitY (const unit_y_type &UnitY) |
| Set the description of how to interpret each element. | |
| void | SetDataValid (const CHAR_U *DataValid, n_data_valid_type NDataValid, data_valid_comp_scheme_type Compression=RAW) |
| Store data valid information. | |
Static Public Member Functions | |
| static promote_ret_type | Promote (INT_2U Source, promote_arg_type Obj, promote_stream_type *Stream) |
| Promote previous version of object to this version. | |
| static promote_ret_type | Promote (INT_2U Source, promote_arg_type Obj, promote_stream_type *Stream) |
| Promote previous version of object to this version. | |
| static const char * | CheckSumDataClass () |
| Data class to be used in class field of FrSE. | |
| static const char * | CheckSumDataClass () |
| Data class to be used in class field of FrSE. | |
| static const char * | CheckSumDataClass () |
| Data class to be used in class field of FrSE. | |
| static const char * | CheckSumDataClass () |
| Data class to be used in class field of FrSE. | |
| static const char * | CheckSumDataClass () |
| Data class to be used in class field of FrSE. | |
| static const char * | CheckSumDataClass () |
| Data class to be used in class field of FrSE. | |
| static const char * | CheckSumDataComment () |
| Comment to be used in comment field of FrSE. | |
| static const char * | CheckSumDataComment () |
| Comment to be used in comment field of FrSE. | |
| static const char * | CheckSumDataComment () |
| Comment to be used in comment field of FrSE. | |
| static const char * | CheckSumDataComment () |
| Comment to be used in comment field of FrSE. | |
| static const char * | CheckSumDataComment () |
| Comment to be used in comment field of FrSE. | |
| static const char * | CheckSumDataComment () |
| Comment to be used in comment field of FrSE. | |
| static data_type | DataAlloc (type_type Type, const Dimension *Dims, const nDim_type NDim=1) |
| Allocate a block of memory suitable for storing data. | |
| static data_type | DataAlloc (type_type Type, nData_type NData) |
| Allocate a block of memory suitable for storing data. | |
| static size_t | GetTypeSize (type_type Type) |
| Get size of single data point of particular size. | |
| static struct_desc_type | FrameSpecDescription () |
| Return the dictionary name of the structure. | |
| static struct_id_type | FrameSpecId () |
| Return the dictionary name of the structure. | |
Protected Member Functions | |
| virtual void | VerifyObject (Common::Verify &Verifier, Common::IFrameStream &Stream) const |
| Verify the integrity of the object. | |
| virtual void | VerifyObject (Common::Verify &Verifier, Common::IFrameStream &Stream) const |
| Verify the integrity of the object. | |
| virtual demote_ret_type | demote (INT_2U Target, demote_arg_type Obj, demote_stream_type *Stream) const |
| Demotes object to previous version of the frame spec. | |
| virtual demote_ret_type | demote (INT_2U Target, demote_arg_type Obj, demote_stream_type *Stream) const |
| Demotes object to previous version of the frame spec. | |
| virtual const char * | ObjectStructName () const |
| The name structure name of this object. | |
| virtual const char * | ObjectStructName () const |
| The name structure name of this object. | |
| virtual const Common::Description * | GetDescription (ostream_type &Stream) const |
| The data structure description. | |
| virtual const Common::Description * | GetDescription (ostream_type &Stream) const |
| The data structure description. | |
| virtual promote_ret_type | promote (INT_2U Target, promote_arg_type Obj, promote_stream_type *Stream) const |
| Promotes object to another version of the frame spec. | |
| virtual promote_ret_type | promote (INT_2U Target, promote_arg_type Obj, promote_stream_type *Stream) const |
| Promotes object to another version of the frame spec. | |
| virtual FrameCPP::cmn_streamsize_type | pBytes (const Common::StreamBase &Stream) const |
| Number of bytes needed to write this structure. | |
| virtual FrameCPP::cmn_streamsize_type | pBytes (const Common::StreamBase &Stream) const |
| Number of bytes needed to write this structure. | |
| virtual self_type * | pCreate (istream_type &Stream) const |
| Stream constructor. | |
| virtual self_type * | pCreate (istream_type &Stream) const |
| Stream constructor. | |
| virtual void | pWrite (ostream_type &Stream) const |
| Write the structure to the stream. | |
| virtual void | pWrite (ostream_type &Stream) const |
| Write the structure to the stream. | |
| template<typename NDATA_T, typename NBYTES_T, typename DATA_T> | |
| void | compress_block (type_type BlockType, INT_4U Scheme, int Level, NDATA_T &NData, NBYTES_T &NBytes, DATA_T &Block, compress_type &CompressionScheme) |
| Compress a block data. | |
Vector Data Structure Definition.
| FrVect::FrVect | ( | ) |
Default constructor.
| FrVect::FrVect | ( | const FrVect & | vect | ) |
Copy Constructor.
| [in] | vect | The object from which to copy the information. |
| FrameCPP::Version_9::FrVect::FrVect | ( | const std::string & | name, |
| type_type | type, | ||
| nDim_type | nDim, | ||
| const Dimension * | dims, | ||
| const byte_order_type | byte_order = BYTE_ORDER_HOST, | ||
| const void * | data = 0, | ||
| const std::string & | unitY = "" ) |
Constructor.
| [in] | name | The name of the data. |
| [in] | type | The data type. |
| [in] | nDim | The number of dimensions. |
| [in] | dims | A pointer to 'nDim' Dimension objects containing information about the dimensions for this data. |
| [in] | byte_order | Byte order of the data. Default is BYTE_ORDER_HOST |
| [in] | data | A pointer to the data. Default: 0 |
| [in] | unitY | Units for the data. Default: "" |
| FrVect::FrVect | ( | const std::string & | Name, |
| type_type | Type, | ||
| nDim_type | NDim, | ||
| const Dimension * | Dims, | ||
| const std::string & | UnitY ) |
Constructor.
| [in] | Name | The name of the data. |
| [in] | Type | The data type. |
| [in] | NDim | The number of dimensions. |
| [in] | Dims | A pointer to 'nDim' Dimension objects containing information about the dimensions for this data. |
| [in] | UnitY | Units for the data. |
| FrVect::FrVect | ( | const Previous::FrVect & | Source, |
| stream_base_type * | Stream ) |
| FrameCPP::Version_9::FrVect::FrVect | ( | ) |
Default constructor.
| FrameCPP::Version_9::FrVect::FrVect | ( | const FrVect & | vect | ) |
Copy Constructor.
| [in] | vect | The object from which to copy the information. |
| FrameCPP::Version_9::FrVect::FrVect | ( | const std::string & | name, |
| type_type | type, | ||
| nDim_type | nDim, | ||
| const Dimension * | dims, | ||
| const byte_order_type | byte_order = BYTE_ORDER_HOST, | ||
| const void * | data = 0, | ||
| const std::string & | unitY = "" ) |
Constructor.
| [in] | name | The name of the data. |
| [in] | type | The data type. |
| [in] | nDim | The number of dimensions. |
| [in] | dims | A pointer to 'nDim' Dimension objects containing information about the dimensions for this data. |
| [in] | byte_order | Byte order of the data. Default is BYTE_ORDER_HOST |
| [in] | data | A pointer to the data. Default: 0 |
| [in] | unitY | Units for the data. Default: "" |
| FrameCPP::Version_9::FrVect::FrVect | ( | const std::string & | Name, |
| type_type | Type, | ||
| nDim_type | NDim, | ||
| const Dimension * | Dims, | ||
| const std::string & | UnitY ) |
Constructor.
| [in] | Name | The name of the data. |
| [in] | Type | The data type. |
| [in] | NDim | The number of dimensions. |
| [in] | Dims | A pointer to 'nDim' Dimension objects containing information about the dimensions for this data. |
| [in] | UnitY | Units for the data. |
| FrameCPP::Version_9::FrVect::FrVect | ( | const Previous::FrVect & | Source, |
| stream_base_type * | Stream ) |
|
virtualinherited |
Return the number of bytes for this object.
| [in] | Stream | Stream characteristics used to determine the number of bytes needed to format the object for the Stream. |
|
inlineprotectedinherited |
Compress a block data.
| [in] | Scheme | Desired compression method |
| [in,out] | NData | Block of data to be compressed. The compressed buffer will be stored in this variable. @para[in,out] NBytes On input, the number of bytes in NData. On output, the number of bytes in the compressed NData buffer. |
| [in,out] | Block,Block | of data to be compressed. Upon output, the compressed form of the block |
| [out] | CompressionScheme | The compression scheme |
|
virtualinherited |
Virtual constructor.
| [in] | Stream | The input stream from where the object is being read. |
|
virtualinherited |
Virtual constructor.
| [in] | Stream | The input stream from where the object is being read. |
|
virtualinherited |
Virtual constructor.
| [in] | Stream | The input stream from where the object is being read. |
|
virtualinherited |
Virtual constructor.
| [in] | Stream | The input stream from where the object is being read. |
|
virtualinherited |
Virtual constructor.
| [in] | Stream | The input stream from where the object is being read. |
|
virtualinherited |
Virtual constructor.
| [in] | Stream | The input stream from where the object is being read. |
|
inlinestaticinherited |
Allocate a block of memory suitable for storing data.
| [in] | Type | The type of data that is to be stored in the buffer. |
| [in] | Dims | Information concearning each dimension of the array of data to be stored in the buffer. |
| [in] | NDim | The number of dimensions of data to be stored in the buffer |
|
inlinestaticinherited |
Allocate a block of memory suitable for storing data.
| [in] | Type | The type of data that is to be stored in the buffer. |
| [in] | Dims | Information concearning each dimension of the array of data to be stored in the buffer. |
| [in] | NDim | The number of dimensions of data to be stored in the buffer |
|
inlineprotectedvirtualinherited |
Demotes object to previous version of the frame spec.
| [in] | Target | The version of the frame specification to demote too. |
| [in] | Obj | The version of the object to demote. |
| [in] | Stream | The input stream from which the original object was read. |
|
inlineprotectedvirtualinherited |
Demotes object to previous version of the frame spec.
| [in] | Target | The version of the frame specification to demote too. |
| [in] | Obj | The version of the object to demote. |
| [in] | Stream | The input stream from which the original object was read. |
|
inlineinherited |
Retrieve the compression algorithm number.
|
inlineinherited |
Retrieve the pointer to the data.
Return a pointer to the data being managed by the FrVect structure.
|
inlineinherited |
Retrieve the pointer to the compressed data.
|
inlineinherited |
Retrieve the pointer to the compressed data.
|
inlineinherited |
Retrieve the pointer to the uncompressed data.
|
inlineinherited |
Retrieve the pointer to the uncompressed data.
| [in] | Expanded | Buffer into which the data is expanded. |
|
inlineinherited |
Retrieve the pointer to the data.
Return a pointer to the data valid being managed by the FrVect structure.
|
inlineinherited |
Retrieve the dataValid compression algorithm number.
|
inlineinherited |
Retrieve the pointer to the data.
Return a pointer to the data valid being managed by the FrVect structure.
|
inlineinherited |
Retrieve the pointer to the data.
Return a pointer to the data valid being managed by the FrVect structure.
|
inlineprotectedvirtualinherited |
The data structure description.
|
inlineprotectedvirtualinherited |
The data structure description.
|
inlineinherited |
Retrieve the Nth dimension.
| [in] | Offset | Index for desired dimension |
|
inlineinherited |
Retrieve the Nth dimension.
| [in] | Offset | Index for desired dimension |
|
inlineinherited |
Retrieve all the dimension information.
| const FrVect::name_type & FrVect::GetName | ( | ) | const |
Retrieve the name of message, error flag, or alarm state.
| const name_type & FrameCPP::Version_9::FrVect::GetName | ( | ) | const |
Retrieve the name of message, error flag, or alarm state.
|
inlineinherited |
Retrieve the number of bytes in the compressed vector.
|
inlineinherited |
Retrieve the number of sample elements in data series.
|
inlineinherited |
Retrieve the number of sample elements in data valid series.
|
inlineinherited |
Retrieve the number of bytes in the compressed dataValid vector.
|
inlineinherited |
Retrieve the number of dimensions.
|
inlineinherited |
Retrieve the vector class.
|
inlinestaticinherited |
Get size of single data point of particular size.
| [in] | Type | Data type ID. |
|
inlineinherited |
Retrieve the description of how to interpret each element.
|
inlineprotectedvirtualinherited |
The name structure name of this object.
|
inlineprotectedvirtualinherited |
The name structure name of this object.
| bool FrVect::operator!= | ( | const FrVect & | RHS | ) | const |
inequality operator
| [in] | RHS | The FrAdcData object to be compared. |
| bool FrameCPP::Version_9::FrVect::operator!= | ( | const FrVect & | RHS | ) | const |
inequality operator
| [in] | RHS | The FrAdcData object to be compared. |
| bool FrVect::operator== | ( | const FrVect & | RHS | ) | const |
equality operator
| [in] | RHS | The FrAdcData object to be compared. |
| bool FrameCPP::Version_9::FrVect::operator== | ( | const FrVect & | RHS | ) | const |
equality operator
| [in] | RHS | The FrAdcData object to be compared. |
|
virtualinherited |
equality operator for abstract data type
| [in] | RHS | The object to be compared. |
|
inlineprotectedvirtualinherited |
Number of bytes needed to write this structure.
| [in] | Stream | The stream from which to the object is being read or written. |
|
inlineprotectedvirtualinherited |
Number of bytes needed to write this structure.
| [in] | Stream | The stream from which to the object is being read or written. |
|
inlineprotectedvirtualinherited |
Stream constructor.
| [in] | Stream | The input stream from where the object is being read. |
|
inlineprotectedvirtualinherited |
Stream constructor.
| [in] | Stream | The input stream from where the object is being read. |
|
inlinestaticinherited |
Promote previous version of object to this version.
| [in] | Source | The frame specification version of the object. |
| [in] | Obj | The previous version of the object. |
| [in] | Stream | Stream from which the origional object was created. |
|
inlinestaticinherited |
Promote previous version of object to this version.
| [in] | Source | The frame specification version of the object. |
| [in] | Obj | The previous version of the object. |
| [in] | Stream | Stream from which the origional object was created. |
|
inlineprotectedvirtualinherited |
Promotes object to another version of the frame spec.
| [in] | Target | The version of the promoted frame specification. |
| [in] | Obj | The object to be promoted. |
| [in] | Stream | The input stream from which the original object was read. |
|
inlineprotectedvirtualinherited |
Promotes object to another version of the frame spec.
| [in] | Target | The version of the promoted frame specification. |
| [in] | Obj | The object to be promoted. |
| [in] | Stream | The input stream from which the original object was read. |
|
inlineprotectedvirtualinherited |
Write the structure to the stream.
| [in] | Stream | The output stream where the object is to be written. |
|
inlineprotectedvirtualinherited |
Write the structure to the stream.
| [in] | Stream | The output stream where the object is to be written. |
|
inlineinherited |
Store data valid information.
| [in] |
|
inlineinherited |
Establish the channel name.
Assign a new value for the channel name.
| [in] | Name | The channel name |
|
inlineinherited |
Set the description of how to interpret each element.
Assign a new value for the channel name.
| [in] | UnitY | New description |
| FrVect::subfrvect_type FrVect::SubFrVect | ( | INT_4U | Start, |
| INT_4U | Stop ) const |
Request a subset of the data.
| [in] | Start | The offset in the data set where to start. |
| [in] | Stop | The offset in the data set where to stop. |
| subfrvect_type FrameCPP::Version_9::FrVect::SubFrVect | ( | INT_4U | Start, |
| INT_4U | Stop ) const |
Request a subset of the data.
| [in] | Start | The offset in the data set where to start. |
| [in] | Stop | The offset in the data set where to stop. |
|
inlineinherited |
Expand compressed data.
In general, uncompressing follows three steps:
1) Gunzip the data. 2) Fix byte-ordering. 3) Integrate.
Depending upon the compression type and byte-ordering differences, not all of these steps are needed.
|
inlineprotectedvirtualinherited |
Verify the integrity of the object.
| Verifier | The handle to the Verify object used to store data that needs to be accumulated before being processed. |
| Stream | The input stream from which the object was created. |
|
inlineprotectedvirtualinherited |
Verify the integrity of the object.
| Verifier | The handle to the Verify object used to store data that needs to be accumulated before being processed. |
| Stream | The input stream from which the object was created. |