ldas-tools-framecpp  2.7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
FrameCPP::Version_8::FrSimData Class Reference

Simulated Data Structure Definition. More...

#include <FrSimData.hh>

Inherits FrameCPP::Version_8::ObjectWithChecksum< ObjectType >, FrSimDataStorage, FrSimDataRefsT< FrVect, FrTable >, FrameCPP::Common::TOCInfo, FrameCPP::Version_8::ObjectWithChecksum< ObjectType >, FrSimDataStorage, FrSimDataRefsT< FrVect, FrTable >, and FrameCPP::Common::TOCInfo.

Public Member Functions

 FrSimData ()
 Default constructor. More...
 
 FrSimData (const FrSimData &Source)
 Copy Constructor. More...
 
 FrSimData (const std::string &Name, const std::string &Comment, const REAL_8 SampleRate, const REAL_8 FShift, const REAL_4 Phase, const REAL_8 TimeOffset=DEFAULT_TIME_OFFSET)
 Constructor. More...
 
 FrSimData (Previous::FrSimData &Source, Common::IStream *Stream)
 Promotion Constructor. More...
 
void SetComment (const comment_type &Comment)
 Establish the value of the comment field. More...
 
void SetSampleRate (sampleRate_type SampleRate)
 Establish the value of the sampleRate field. More...
 
void SetTimeOffset (timeOffset_type time)
 Establish the value of the timeOffset field. More...
 
virtual const char * ObjectStructName () const
 The name structure name of this object. More...
 
const std::string & GetNameSlow () const
 Return the name associate with the FrSimData structure. More...
 
sampleRate_type GetSampleRate () const
 The data acquisition rate. More...
 
FrSimDataMerge (const FrSimData &RHS)
 Merge with another FrSimData. More...
 
bool operator== (const FrSimData &RHS) const
 equality operator More...
 
virtual bool operator== (const Common::FrameSpec::Object &RHS) const
 equality operator for abstract data type More...
 
 FrSimData ()
 Default constructor. More...
 
 FrSimData (const FrSimData &Source)
 Copy Constructor. More...
 
 FrSimData (const std::string &Name, const std::string &Comment, const REAL_8 SampleRate, const REAL_8 FShift, const REAL_4 Phase, const REAL_8 TimeOffset=DEFAULT_TIME_OFFSET)
 Constructor. More...
 
 FrSimData (Previous::FrSimData &Source, Common::IStream *Stream)
 Promotion Constructor. More...
 
void SetComment (const comment_type &Comment)
 Establish the value of the comment field. More...
 
void SetSampleRate (sampleRate_type SampleRate)
 Establish the value of the sampleRate field. More...
 
void SetTimeOffset (timeOffset_type time)
 Establish the value of the timeOffset field. More...
 
virtual const char * ObjectStructName () const
 The name structure name of this object. More...
 
const std::string & GetNameSlow () const
 Return the name associate with the FrSimData structure. More...
 
sampleRate_type GetSampleRate () const
 The data acquisition rate. More...
 
FrSimDataMerge (const FrSimData &RHS)
 Merge with another FrSimData. More...
 
bool operator== (const FrSimData &RHS) const
 equality operator More...
 
virtual bool operator== (const Common::FrameSpec::Object &RHS) const
 equality operator for abstract data type More...
 
virtual streamsize_type Bytes (const StreamBase &Stream) const
 Return the number of bytes for this object. More...
 
virtual streamsize_type Bytes (const StreamBase &Stream) const
 Return the number of bytes for this object. More...
 
virtual self_typeCreate (istream_type &Stream) const
 Virtual constructor. More...
 
virtual self_typeCreate (istream_type &Stream) const
 Virtual constructor. More...
 
virtual void Write (ostream_type &Stream) const
 Write object to the stream.
 
virtual void Write (ostream_type &Stream) const
 Write object to the stream.
 

Static Public Member Functions

static promote_ret_type Promote (INT_2U Source, promote_arg_type Obj, Common::IStream *Stream)
 Promote previous version of object to this version. More...
 
static const char * StructName ()
 The name structure name of this object. More...
 
static const Common::Description * StructDescription ()
 The description of structure. More...
 
static promote_ret_type Promote (INT_2U Source, promote_arg_type Obj, Common::IStream *Stream)
 Promote previous version of object to this version. More...
 
static const char * StructName ()
 The name structure name of this object. More...
 
static const Common::Description * StructDescription ()
 The description of structure. More...
 
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.
 

Protected Member Functions

virtual demote_ret_type demote (INT_2U Target, demote_arg_type Obj, Common::IStream *Stream) const
 Demotes object to previous version of the frame spec. More...
 
virtual promote_ret_type promote (INT_2U Target, promote_arg_type Obj, Common::IStream *Stream) const
 Promotes object to another version of the frame spec. More...
 
cmn_streamsize_type pBytes (const Common::StreamBase &Stream) const
 Number of bytes needed to write this structure. More...
 
virtual FrSimDatapCreate (Common::IStream &Stream) const
 Virtual constructor. More...
 
virtual void pWrite (Common::OStream &Stream) const
 Write the structure to the stream. More...
 
virtual void vTOCQuery (int InfoClass, va_list vl) const
 Answer requests for information as needed by TOC. More...
 
virtual demote_ret_type demote (INT_2U Target, demote_arg_type Obj, Common::IStream *Stream) const
 Demotes object to previous version of the frame spec. More...
 
virtual promote_ret_type promote (INT_2U Target, promote_arg_type Obj, Common::IStream *Stream) const
 Promotes object to another version of the frame spec. More...
 
cmn_streamsize_type pBytes (const Common::StreamBase &Stream) const
 Number of bytes needed to write this structure. More...
 
virtual FrSimDatapCreate (Common::IStream &Stream) const
 Virtual constructor. More...
 
virtual void pWrite (Common::OStream &Stream) const
 Write the structure to the stream. More...
 
virtual void vTOCQuery (int InfoClass, va_list vl) const
 Answer requests for information as needed by TOC. More...
 

Detailed Description

Simulated Data Structure Definition.

Constructor & Destructor Documentation

◆ FrSimData() [1/8]

FrSimData::FrSimData ( )

Default constructor.

Returns
A new instance of this object.

◆ FrSimData() [2/8]

FrSimData::FrSimData ( const FrSimData Source)

Copy Constructor.

Parameters
[in]SourceThe object from which to copy the information.
Returns
A new instance of this object.

◆ FrSimData() [3/8]

FrSimData::FrSimData ( const std::string &  Name,
const std::string &  Comment,
const REAL_8  SampleRate,
const REAL_8  FShift,
const REAL_4  Phase,
const REAL_8  TimeOffset = DEFAULT_TIME_OFFSET 
)

Constructor.

Parameters
[in]NameName of simulated data.
[in]CommentComment
[in]SampleRateSimulated data sample rate, samples per second.
[in]FShiftThe frequency in the original data that corresponds to 0 Hz in the heterodyned series.
[in]PhasePhase of heterodyning signal at start of dataset.
[in]TimeOffsetOffset of 1st sample relative to the frame start time.
Returns
A new instance of the object.

◆ FrSimData() [4/8]

FrSimData::FrSimData ( Previous::FrSimData &  Source,
Common::IStream *  Stream 
)

Promotion Constructor.

Parameters
[in]SourceAn FrSimData structure from a previous frame specification.
[in]StreamThe stream from which the earliest version of the FrSimData structure was read.
Returns
A new instance of the object.

◆ FrSimData() [5/8]

FrameCPP::Version_8::FrSimData::FrSimData ( )

Default constructor.

Returns
A new instance of this object.

◆ FrSimData() [6/8]

FrameCPP::Version_8::FrSimData::FrSimData ( const FrSimData Source)

Copy Constructor.

Parameters
[in]SourceThe object from which to copy the information.
Returns
A new instance of this object.

◆ FrSimData() [7/8]

FrameCPP::Version_8::FrSimData::FrSimData ( const std::string &  Name,
const std::string &  Comment,
const REAL_8  SampleRate,
const REAL_8  FShift,
const REAL_4  Phase,
const REAL_8  TimeOffset = DEFAULT_TIME_OFFSET 
)

Constructor.

Parameters
[in]NameName of simulated data.
[in]CommentComment
[in]SampleRateSimulated data sample rate, samples per second.
[in]FShiftThe frequency in the original data that corresponds to 0 Hz in the heterodyned series.
[in]PhasePhase of heterodyning signal at start of dataset.
[in]TimeOffsetOffset of 1st sample relative to the frame start time.
Returns
A new instance of the object.

◆ FrSimData() [8/8]

FrameCPP::Version_8::FrSimData::FrSimData ( Previous::FrSimData &  Source,
Common::IStream *  Stream 
)

Promotion Constructor.

Parameters
[in]SourceAn FrSimData structure from a previous frame specification.
[in]StreamThe stream from which the earliest version of the FrSimData structure was read.
Returns
A new instance of the object.

Member Function Documentation

◆ Bytes() [1/2]

virtual streamsize_type FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >::Bytes ( const StreamBase &  Stream) const
virtualinherited

Return the number of bytes for this object.

Parameters
[in]StreamStream characteristics used to determine the number of bytes needed to format the object for the Stream.
Returns
The number of bytes for this object

◆ Bytes() [2/2]

virtual streamsize_type FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >::Bytes ( const StreamBase &  Stream) const
virtualinherited

Return the number of bytes for this object.

Parameters
[in]StreamStream characteristics used to determine the number of bytes needed to format the object for the Stream.
Returns
The number of bytes for this object

◆ Create() [1/2]

virtual self_type* FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >::Create ( istream_type &  Stream) const
virtualinherited

Virtual constructor.

Parameters
[in]StreamThe input stream from where the object is being read.
Returns
Return pointer to the newly allocated resource.

◆ Create() [2/2]

virtual self_type* FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >::Create ( istream_type &  Stream) const
virtualinherited

Virtual constructor.

Parameters
[in]StreamThe input stream from where the object is being read.
Returns
Return pointer to the newly allocated resource.

◆ demote() [1/2]

FrSimData::demote_ret_type FrSimData::demote ( INT_2U  Target,
demote_arg_type  Obj,
Common::IStream *  Stream 
) const
protectedvirtual

Demotes object to previous version of the frame spec.

Parameters
[in]TargetThe version of the frame specification to demote too.
[in]ObjThe version of the object to demote.
[in]StreamThe input stream from which the original object was read.
Returns
An object of the previous generation.

◆ demote() [2/2]

virtual demote_ret_type FrameCPP::Version_8::FrSimData::demote ( INT_2U  Target,
demote_arg_type  Obj,
Common::IStream *  Stream 
) const
protectedvirtual

Demotes object to previous version of the frame spec.

Parameters
[in]TargetThe version of the frame specification to demote too.
[in]ObjThe version of the object to demote.
[in]StreamThe input stream from which the original object was read.
Returns
An object of the previous generation.

◆ GetNameSlow() [1/2]

const std::string & FrSimData::GetNameSlow ( ) const

Return the name associate with the FrSimData structure.

Returns
The name associated with the FrSimData structure

◆ GetNameSlow() [2/2]

const std::string& FrameCPP::Version_8::FrSimData::GetNameSlow ( ) const

Return the name associate with the FrSimData structure.

Returns
The name associated with the FrSimData structure

◆ GetSampleRate() [1/2]

FrSimData::sampleRate_type FrameCPP::Version_8::FrSimData::GetSampleRate ( ) const
inline

The data acquisition rate.

Returns
The data acquisition rate.

◆ GetSampleRate() [2/2]

sampleRate_type FrameCPP::Version_8::FrSimData::GetSampleRate ( ) const

The data acquisition rate.

Returns
The data acquisition rate.

◆ Merge() [1/2]

FrSimData & FrSimData::Merge ( const FrSimData RHS)

Merge with another FrSimData.

Parameters
[in]RHSThe source of the information to append to this FrSimData structure.
Returns
A reference to this object
Todo:
Need to implement Merge routine

◆ Merge() [2/2]

FrSimData& FrameCPP::Version_8::FrSimData::Merge ( const FrSimData RHS)

Merge with another FrSimData.

Parameters
[in]RHSThe source of the information to append to this FrSimData structure.
Returns
A reference to this object

◆ ObjectStructName() [1/2]

const char * FrSimData::ObjectStructName ( ) const
virtual

The name structure name of this object.

Returns
The name of the structure as specified by the frame specification.

◆ ObjectStructName() [2/2]

virtual const char* FrameCPP::Version_8::FrSimData::ObjectStructName ( ) const
virtual

The name structure name of this object.

Returns
The name of the structure as specified by the frame specification.

◆ operator==() [1/4]

bool FrSimData::operator== ( const Common::FrameSpec::Object RHS) const
virtual

equality operator for abstract data type

Parameters
[in]RHSThe object to be compared.
Returns
The value true is returned if this object is equivelent to the RHS instance; false otherwise.

◆ operator==() [2/4]

virtual bool FrameCPP::Version_8::FrSimData::operator== ( const Common::FrameSpec::Object RHS) const
virtual

equality operator for abstract data type

Parameters
[in]RHSThe object to be compared.
Returns
The value true is returned if this object is equivelent to the RHS instance; false otherwise.

◆ operator==() [3/4]

bool FrameCPP::Version_8::FrSimData::operator== ( const FrSimData RHS) const
inline

equality operator

Parameters
[in]RHSThe FrSimData object to be compared.
Returns
The value true is returned if this object is equivelent to the RHS instance; false otherwise.

◆ operator==() [4/4]

bool FrameCPP::Version_8::FrSimData::operator== ( const FrSimData RHS) const

equality operator

Parameters
[in]RHSThe FrSimData object to be compared.
Returns
The value true is returned if this object is equivelent to the RHS instance; false otherwise.

◆ pBytes() [1/2]

FrameCPP::cmn_streamsize_type FrSimData::pBytes ( const Common::StreamBase &  Stream) const
protectedvirtual

Number of bytes needed to write this structure.

Parameters
[in]StreamThe stream from which to the object is being read or written.
Returns
The number of bytes need to read or write this object.

Implements FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >.

◆ pBytes() [2/2]

cmn_streamsize_type FrameCPP::Version_8::FrSimData::pBytes ( const Common::StreamBase &  Stream) const
protectedvirtual

Number of bytes needed to write this structure.

Parameters
[in]StreamThe stream from which to the object is being read or written.
Returns
The number of bytes need to read or write this object.

Implements FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >.

◆ pCreate() [1/2]

FrSimData * FrSimData::pCreate ( Common::IStream &  Stream) const
protectedvirtual

Virtual constructor.

Parameters
[in]StreamThe input stream from where the object is being read.

Implements FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >.

◆ pCreate() [2/2]

virtual FrSimData* FrameCPP::Version_8::FrSimData::pCreate ( Common::IStream &  Stream) const
protectedvirtual

Virtual constructor.

Parameters
[in]StreamThe input stream from where the object is being read.

Implements FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >.

◆ Promote() [1/2]

FrSimData::promote_ret_type FrameCPP::Version_8::FrSimData::Promote ( INT_2U  Source,
promote_arg_type  Obj,
Common::IStream *  Stream 
)
inlinestatic

Promote previous version of object to this version.

Parameters
[in]SourceThe frame specification version of the object.
[in]ObjThe previous version of the object.
[in]StreamStream from which the origional object was created.
Returns
A new instance of FrameH based on Obj

◆ Promote() [2/2]

static promote_ret_type FrameCPP::Version_8::FrSimData::Promote ( INT_2U  Source,
promote_arg_type  Obj,
Common::IStream *  Stream 
)
static

Promote previous version of object to this version.

Parameters
[in]SourceThe frame specification version of the object.
[in]ObjThe previous version of the object.
[in]StreamStream from which the origional object was created.
Returns
A new instance of FrameH based on Obj

◆ promote() [1/2]

FrSimData::promote_ret_type FrSimData::promote ( INT_2U  Target,
promote_arg_type  Obj,
Common::IStream *  Stream 
) const
protectedvirtual

Promotes object to another version of the frame spec.

Parameters
[in]TargetThe version of the promoted frame specification.
[in]ObjThe object to be promoted.
[in]StreamThe input stream from which the original object was read.
Returns
An object promoted to the next generation.

◆ promote() [2/2]

virtual promote_ret_type FrameCPP::Version_8::FrSimData::promote ( INT_2U  Target,
promote_arg_type  Obj,
Common::IStream *  Stream 
) const
protectedvirtual

Promotes object to another version of the frame spec.

Parameters
[in]TargetThe version of the promoted frame specification.
[in]ObjThe object to be promoted.
[in]StreamThe input stream from which the original object was read.
Returns
An object promoted to the next generation.

◆ pWrite() [1/2]

void FrSimData::pWrite ( Common::OStream &  Stream) const
protectedvirtual

Write the structure to the stream.

Parameters
[in]StreamThe output stream where the object is to be written.

Implements FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >.

◆ pWrite() [2/2]

virtual void FrameCPP::Version_8::FrSimData::pWrite ( Common::OStream &  Stream) const
protectedvirtual

Write the structure to the stream.

Parameters
[in]StreamThe output stream where the object is to be written.

Implements FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, checksum_type >.

◆ SetComment() [1/2]

void FrameCPP::Version_8::FrSimData::SetComment ( const comment_type &  Comment)
inline

Establish the value of the comment field.

Parameters
[in]CommentThe desired value of the comment field.

◆ SetComment() [2/2]

void FrameCPP::Version_8::FrSimData::SetComment ( const comment_type &  Comment)

Establish the value of the comment field.

Parameters
[in]CommentThe desired value of the comment field.

◆ SetSampleRate() [1/2]

void FrameCPP::Version_8::FrSimData::SetSampleRate ( sampleRate_type  SampleRate)
inline

Establish the value of the sampleRate field.

Parameters
[in]SampleRateThe desired value of the sampleRate field.

◆ SetSampleRate() [2/2]

void FrameCPP::Version_8::FrSimData::SetSampleRate ( sampleRate_type  SampleRate)

Establish the value of the sampleRate field.

Parameters
[in]SampleRateThe desired value of the sampleRate field.

◆ SetTimeOffset() [1/2]

void FrameCPP::Version_8::FrSimData::SetTimeOffset ( timeOffset_type  time)
inline

Establish the value of the timeOffset field.

Parameters
[in]timeThe desired value of the timeOffset field.

◆ SetTimeOffset() [2/2]

void FrameCPP::Version_8::FrSimData::SetTimeOffset ( timeOffset_type  time)

Establish the value of the timeOffset field.

Parameters
[in]timeThe desired value of the timeOffset field.

◆ StructDescription() [1/2]

const Description * FrSimData::StructDescription ( )
static

The description of structure.

Returns
A Description object which describes this structure as specified by the frame specification.

◆ StructDescription() [2/2]

static const Common::Description* FrameCPP::Version_8::FrSimData::StructDescription ( )
static

The description of structure.

Returns
A Description object which describes this structure as specified by the frame specification.

◆ StructName() [1/2]

const char * FrameCPP::Version_8::FrSimData::StructName ( )
inlinestatic

The name structure name of this object.

Returns
The name of the structure as specified by the frame specification.

◆ StructName() [2/2]

static const char* FrameCPP::Version_8::FrSimData::StructName ( )
static

The name structure name of this object.

Returns
The name of the structure as specified by the frame specification.

◆ vTOCQuery() [1/2]

virtual void FrameCPP::Version_8::FrSimData::vTOCQuery ( int  InfoClass,
va_list  vl 
) const
protectedvirtual

Answer requests for information as needed by TOC.

Parameters
[in]InfoClassClass of information being requested.
[in]vlVariable argument list of requested data.

◆ vTOCQuery() [2/2]

virtual void FrameCPP::Version_8::FrSimData::vTOCQuery ( int  InfoClass,
va_list  vl 
) const
protectedvirtual

Answer requests for information as needed by TOC.

Parameters
[in]InfoClassClass of information being requested.
[in]vlVariable argument list of requested data.

The documentation for this class was generated from the following files: