ldas-tools-framecpp
2.5.8
|
Implementation of the frame header structure. More...
#include <FrHeader.hh>
Public Types | |
enum | { FRAME_LIBRARY_UNKNOWN = 0, FRAME_LIBRARY_FRAMEL = 1, FRAME_LIBRARY_FRAMECPP = 2 } |
Libraries known to implement the frame specification. More... | |
typedef FrEndOfFile::chkSumFrHeader_type | checksum_type |
typedef FrameSpec::version_type | frame_spec_version_type |
typedef LDASTools::AL::SharedPtr < Object > | object_type |
typedef std::unique_ptr< Object > | unique_object_type |
typedef object_type | demote_arg_type |
typedef object_type | demote_ret_type |
typedef object_type | promote_arg_type |
typedef object_type | promote_ret_type |
enum | frame_library_type { FRAME_LIBRARY_UNKNOWN = 0, FRAME_LIBRARY_FRAMEL = 1, FRAME_LIBRARY_FRAMECPP = 2 } |
typedef FR_HEADER__VERSION_TYPE | version_type |
typedef FR_HEADER__LIBRARY_REVISION_TYPE | library_revision_type |
typedef CHAR * | originator_type |
Public Member Functions | |
FrHeader () | |
Constructor. More... | |
virtual | ~FrHeader () |
Desctructor. More... | |
virtual FrHeader * | Clone () const |
Copy Constructor (virtual) More... | |
const unsigned char * | Get8ByteEndianness () const |
Buffer holding the endian bytes for an 8 byte quantity. More... | |
int | GetByteOrder () const |
Return the byte order of the frame. More... | |
void | SetOriginator (const std::string &Originator) |
Establish the originator of the frame. More... | |
virtual Common::FrameSpec::size_type | Bytes () const |
Calculate the streaming size of the object. More... | |
virtual Common::FrameSpec::size_type | Bytes (const Common::StreamBase &Stream) const |
Calculate the streaming size of the object. More... | |
virtual bool | ByteSwapping () const |
Check if byte swapping is needed. More... | |
checksum_type | Checksum () const |
virtual const Common::FrameSpec::Object * | Description () const |
Retrieve the objects stream description. More... | |
virtual FrHeader * | Create (istream_type &Stream) const |
Constructor ( virtual ) More... | |
virtual FrHeader * | Create (std::istream &Stream) const |
Constructor ( virtual ) More... | |
void | Filter (Common::StreamFilter &SFilter) const |
Perform the filter over the bytes streamed. More... | |
virtual const char * | ObjectStructName () const |
Retrieve the name of the frame structure. More... | |
virtual void | VerifyObject (Common::Verify &Verifier, Common::IFrameStream &Stream) const |
Perform verification of the object. More... | |
void | Write (ostream_type &Stream) const |
Write object to the stream. More... | |
virtual bool | operator== (const Common::FrameSpec::Object &Obj) const |
comparison operator More... | |
class_type | GetClass () const |
Retrieve the class identifier. More... | |
const Description * | GetDescription () const |
Retrieve FrSH/FrSE description of the parent object. More... | |
ostream_type & | WriteNext (ostream_type &Stream) const |
Write a next pointer to the parent to the stream. More... | |
virtual Object * | Create () const |
constructor - virtual More... | |
template<typename PreviousType , typename CurrentType > | |
FrameSpec::ObjectInterface::promote_ret_type | PromoteObject (FrameSpec::ObjectInterface::frame_spec_version_type Target, FrameSpec::ObjectInterface::frame_spec_version_type Source, FrameSpec::ObjectInterface::promote_arg_type Obj, IStream *Stream) |
frame_library_type | GetFrameLibrary () const |
Retrieve the library used to generate the frame stream. More... | |
std::string | GetFrameLibraryName () const |
Retrieve the library used to generate the frame stream. More... | |
library_revision_type | GetLibraryRevision () const |
version_type | GetVersion () const |
originator_type | GetOriginator () const |
virtual bool | IsValid () const |
void | SetLibraryVersion (INT_2U Version) |
Establish the version of the Library used. More... | |
void | SetVersion (INT_2U Version) |
Establish the version of the frame specification. More... | |
Static Public Member Functions | |
static object_type | DemoteObject (frame_spec_version_type Target, object_type Obj, istream_type *Stream) |
Down grade an object. More... | |
static object_type | PromoteObject (frame_spec_version_type Target, frame_spec_version_type Source, object_type Obj, istream_type *Stream) |
Upgrade an object. More... | |
template<typename PreviousType , typename CurrentType > | |
static object_type | PromoteObject (frame_spec_version_type Target, frame_spec_version_type Source, object_type Obj, istream_type *Stream) |
Upgrade an object. More... | |
static cmn_streamsize_type | SizeOf () |
static std::string | GetFrameLibraryName (frame_library_type LibraryId) |
Retrieve the library used to generate the frame stream. More... | |
Static Public Attributes | |
static const char * | ORIGINATOR_IGWD = "IGWD" |
File type. More... | |
Protected Member Functions | |
FrHeader (const FrHeader &Source) | |
Copy Constructor. More... | |
FrHeader (std::istream &Source) | |
virtual void | complete () |
calculate values since the object is now complete More... | |
virtual demote_ret_type | demote (INT_2U Target, demote_arg_type Obj, istream_type *Stream) const |
Down grade an object. More... | |
virtual promote_ret_type | promote (INT_2U Target, promote_arg_type Obj, istream_type *Stream) const |
Upgrade an object. More... | |
virtual class_type | getClass () const |
Retrieve the class identifier. More... | |
Protected Attributes | |
frame_library_type | m_frame_library |
Implementation of the frame header structure.
This structure is described in section 4.3.1 of the frame specification. Its purpose is to provide a table of standard information in the host order so the reader can determine what translations need to occur.
typedef FrEndOfFile::chkSumFrHeader_type FrameCPP::Version_8::FrHeader::checksum_type |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
anonymous enum |
Libraries known to implement the frame specification.
This enumeration is intended to supply a unique identity for each library implementing the frame specification. This information along with the version of the library and the frame specification, uniquely identifies an implementation of the frame specification and can be used to code around problems with the implementation.
|
inherited |
FrameCPP::Version_8::FrHeader::FrHeader | ( | ) |
Constructor.
|
virtual |
Desctructor.
Reimplemented from FrameCPP::Common::FrHeader.
|
protected |
Copy Constructor.
|
protected |
|
virtual |
Calculate the streaming size of the object.
Reimplemented from FrameCPP::Common::FrHeader.
|
virtual |
Calculate the streaming size of the object.
Implements FrameCPP::Common::FrameSpec::ObjectInterface.
|
virtual |
Check if byte swapping is needed.
Reimplemented from FrameCPP::Common::FrHeader.
|
inline |
Retieve the value of the checksum associated with this FrHeader structure.
|
virtual |
Copy Constructor (virtual)
Reimplemented from FrameCPP::Common::FrameSpec::ObjectInterface.
|
protectedvirtual |
calculate values since the object is now complete
Reimplemented from FrameCPP::Common::FrHeader.
|
virtual |
Constructor ( virtual )
Implements FrameCPP::Common::FrameSpec::ObjectInterface.
|
virtual |
Constructor ( virtual )
Reimplemented from FrameCPP::Common::FrameSpec::ObjectInterface.
|
virtualinherited |
constructor - virtual
Reimplemented in FrameCPP::Version_8::FrTOC, FrameCPP::Version_6::FrTOC, and FrameCPP::Version_4::FrTOC.
|
protectedvirtual |
Down grade an object.
Implements FrameCPP::Common::FrameSpec::ObjectInterface.
|
staticinherited |
Down grade an object.
[in] | Target | This is the version of the frame specification of the demoted object. |
[in] | Obj | The base object. |
[in] | Stream | Stream from which Obj was created. |
|
virtual |
Retrieve the objects stream description.
|
inlinevirtual |
Perform the filter over the bytes streamed.
[in] | SFilter | Filter to be applied to the stream. |
This performs the filtering operation over the raw bytes of the structure. A typical use would be to calculate the CRC checksum of this object.
Reimplemented from FrameCPP::Common::FrHeader.
|
inline |
Buffer holding the endian bytes for an 8 byte quantity.
|
inline |
Return the byte order of the frame.
|
inlineinherited |
Retrieve the class identifier.
|
protectedvirtualinherited |
Retrieve the class identifier.
Implements FrameCPP::Common::FrameSpec::ObjectInterface.
|
inlinevirtualinherited |
Retrieve FrSH/FrSE description of the parent object.
Implements FrameCPP::Common::FrameSpec::ObjectInterface.
|
inlineinherited |
Retrieve the library used to generate the frame stream.
|
inlineinherited |
Retrieve the library used to generate the frame stream.
|
inlinestaticinherited |
Retrieve the library used to generate the frame stream.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
virtualinherited |
|
virtual |
Retrieve the name of the frame structure.
Implements FrameCPP::Common::FrameSpec::ObjectInterface.
|
virtual |
comparison operator
Implements FrameCPP::Common::FrameSpec::ObjectInterface.
|
protectedvirtual |
Upgrade an object.
Implements FrameCPP::Common::FrameSpec::ObjectInterface.
|
staticinherited |
Upgrade an object.
[in] | Target | Promote Obj to this version of the frame specification. |
[in] | Source | Obj conforms to this version of the frame specification. |
[in] | Obj | Object to be converted |
[in] | Stream | Originating stream for Obj. |
|
staticinherited |
Upgrade an object.
[in] | Target | Promote Obj to this version of the frame specification. |
[in] | Source | Obj conforms to this version of the frame specification. |
[in] | Obj | Object to be converted |
[in] | Stream | Originating stream for Obj. |
|
inherited |
|
inlineinherited |
Establish the version of the Library used.
void FrameCPP::Version_8::FrHeader::SetOriginator | ( | const std::string & | Originator | ) |
Establish the originator of the frame.
|
inlineinherited |
Establish the version of the frame specification.
|
inlinestaticinherited |
|
virtual |
Perform verification of the object.
Reimplemented from FrameCPP::Common::FrameSpec::ObjectInterface.
|
virtual |
Write object to the stream.
Implements FrameCPP::Common::FrameSpec::ObjectInterface.
|
inherited |
Write a next pointer to the parent to the stream.
[in,out] | Stream | The output stream to receive the next pointer. |
|
protectedinherited |
|
static |
File type.
The string "IGWD" to identify the file as an Interferometric Gravitational Wave Detectors frame file.