#include <framedir.hh>

Public Types | |
| typedef Time::ulong_t | gps_t |
| typedef unsigned long | count_t |
Public Member Functions | |
| ffData (void) | |
| ffData (const char *File, const Time &time, Interval Dt=Interval(1.0), bool DataOK=true) | |
| ffData (const char *Prefix, const char *Suffix, const Time &time, Interval Dt=Interval(1.0)) | |
| Interval | getDt (void) const |
| const char * | getPrefix (void) const |
| const char * | getSuffix (void) const |
| std::string | getFile (count_t N=0) const |
| bool | advance (int N) |
| Time | getStartTime (void) const |
| Time | getEndTime (void) const |
| bool | isFollowed (void) const |
| bool | isValid (void) const |
| gps_t | getStartGPS (void) const |
| gps_t | getEndGPS (void) const |
Protected Attributes | |
| std::string | mFilePrefix |
| std::string | mFileSuffix |
| Time | mStartGPS |
| Interval | mDt |
| bool | mNamingOK |
| bool | mDataOK |
| typedef Time::ulong_t ffData::gps_t |
GPS time data type.
| typedef unsigned long ffData::count_t |
Count data type.
| ffData::ffData | ( | void | ) | [inline] |
Default constructor. brief Default constructor.
| ffData::ffData | ( | const char * | File, | |
| const Time & | time, | |||
| Interval | Dt = Interval(1.0), |
|||
| bool | DataOK = true | |||
| ) | [inline] |
Construct a table entry for a specified file. This constructor is for files that DO NOT follow the naming convention. brief Data constructor.
| File | Name of frame file | |
| time | Start time of first frame | |
| Dt | Length of time spanned by each frame. | |
| DataOK | True if measured data are supplied. |
| ffData::ffData | ( | const char * | Prefix, | |
| const char * | Suffix, | |||
| const Time & | time, | |||
| Interval | Dt = Interval(1.0) | |||
| ) | [inline] |
Construct a table entry for a specified file. This constructor is for files that DO follow the naming convention. brief Data constructor.
| Prefix | Name prefix of frame file | |
| Suffix | Name suffix of frame file | |
| time | Start time of first frame | |
| Dt | Length of time spanned by each frame. |
| Interval ffData::getDt | ( | void | ) | const [inline] |
Get the length of time covered by the file. brief Length of time covered by file.
| const char * ffData::getPrefix | ( | void | ) | const [inline] |
Get the name prefix of the file described by this object. brief File prefix.
| const char * ffData::getSuffix | ( | void | ) | const [inline] |
Get the name suffix of the file described by this object. brief File suffix.
| std::string ffData::getFile | ( | count_t | N = 0 |
) | const |
Get the name of the filed described by this object. The argument N can be used to derive a frame file name later in the series if the naming convention is followed. Setting N to anything than 0 if the naming convention is not followed will return an empty string. brief File name.
| N | frame file number (0 for current). |
| bool ffData::advance | ( | int | N | ) | [inline] |
Advance the starting GPS by N frames. brief advance the start time
| N | number of frames to increment the time. |
| Time ffData::getStartTime | ( | void | ) | const [inline] |
Get the absolute starting time of the data in the file. brief Start time.
| Time ffData::getEndTime | ( | void | ) | const [inline] |
Get the absolute end time of the data in the file. brief End time.
Reimplemented in ffDataSeries.
| bool ffData::isFollowed | ( | void | ) | const [inline] |
Test whether the file name follows the convention. brief Test naming convention.
| bool ffData::isValid | ( | void | ) | const [inline] |
Test whether the information has been gathered by reading the file or inferred from default values or other files in the directory. brief Test data quality.
| ffData::gps_t ffData::getStartGPS | ( | void | ) | const [inline] |
Get the starting GPS second. brief GPS start time.
| ffData::gps_t ffData::getEndGPS | ( | void | ) | const [inline] |
Get the end GPS second. brief GPS end time.
Reimplemented in ffDataSeries.
std::string ffData::mFilePrefix [protected] |
File name including directory name (prefix if mNamingOK).
std::string ffData::mFileSuffix [protected] |
File name including directory name (suffix if mNamingOK).
Time ffData::mStartGPS [protected] |
Starting GPS time of first frame in file.
Interval ffData::mDt [protected] |
Duration of frame file.
bool ffData::mNamingOK [protected] |
File name follows naming convention
bool ffData::mDataOK [protected] |
Data comes from reading frame, is inferred from file name or is inferred from other files in directory
1.5.4