Ginan
Loading...
Searching...
No Matches
ObsStream Struct Reference
Inheritance diagram for ObsStream:
Collaboration diagram for ObsStream:

Public Member Functions

 ObsStream (unique_ptr< Stream > stream_ptr, unique_ptr< Parser > parser_ptr, bool isPseudoRec=false)
 
ObsList getObs ()
 
ObsList getObs (GTime &time, double delta=0.5)
 Retrieve observations with a specified timestamp from memory where observations are buffered, and update obsAgeCode according to the status of retrieved observations: NO_OBS: No observation at all in memory PAST_OBS: Closest observation time is earlier than current processing epoch without tolerance CURRENT_OBS: First processing epoch, or suitable observations found for current processing epoch FUTURE_OBS: Closest observation time is later than current processing epoch without tolerance NOTE: This function may be overridden by objects that use this interface.
 
void dropObs ()
 Drop the front observation list from memory when it has been read sucessfully.
 
bool hasObs ()
 
- Public Member Functions inherited from StreamParser
 StreamParser (unique_ptr< Stream > stream_ptr, unique_ptr< Parser > parser_ptr)
 
 operator Stream & ()
 
 operator Parser & ()
 
void parse ()
 
virtual ~StreamParser ()=default
 

Data Fields

E_ObsAgeCode obsAgeCode
 Age code of observation retrieved from memory.
 
GTime lastReadTime = GTime::noTime()
 
double interval = 0
 
bool isPseudoRec
 
- Data Fields inherited from StreamParser
Streamstream
 
Parserparser
 

Constructor & Destructor Documentation

◆ ObsStream()

ObsStream::ObsStream ( unique_ptr< Stream > stream_ptr,
unique_ptr< Parser > parser_ptr,
bool isPseudoRec = false )
inline

Member Function Documentation

◆ dropObs()

void ObsStream::dropObs ( )
inline

Drop the front observation list from memory when it has been read sucessfully.

Here is the caller graph for this function:

◆ getObs() [1/2]

ObsList ObsStream::getObs ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getObs() [2/2]

ObsList ObsStream::getObs ( GTime & time,
double delta = 0.5 )
inline

Retrieve observations with a specified timestamp from memory where observations are buffered, and update obsAgeCode according to the status of retrieved observations: NO_OBS: No observation at all in memory PAST_OBS: Closest observation time is earlier than current processing epoch without tolerance CURRENT_OBS: First processing epoch, or suitable observations found for current processing epoch FUTURE_OBS: Closest observation time is later than current processing epoch without tolerance NOTE: This function may be overridden by objects that use this interface.

Parameters
timeTimestamp to get observations for
deltaAcceptable tolerance around requested time
Here is the call graph for this function:

◆ hasObs()

bool ObsStream::hasObs ( )
inline

Field Documentation

◆ interval

double ObsStream::interval = 0

◆ isPseudoRec

bool ObsStream::isPseudoRec

◆ lastReadTime

GTime ObsStream::lastReadTime = GTime::noTime()

◆ obsAgeCode

E_ObsAgeCode ObsStream::obsAgeCode
Initial value:

Age code of observation retrieved from memory.


The documentation for this struct was generated from the following file: