#include <FileFilterFrame.hpp>
Inheritance diagram for FileFilterFrame:


In the constructors, providing a start and end time will allow FileHunter to pick the correct files for that date range. After the object is built, it is ready for filtering.
Use the filter(), sort(), unique() and touch() operators to run whatever operations you want to on the data, then write out the files when you're done. You can also get access to the data with getData() and run whatever other post processing tools you would like to.
See the examples in FileFilterFrameTest.cpp for a demonstration.
Definition at line 80 of file FileFilterFrame.hpp.
Public Member Functions | |
| FileFilterFrame (const gpstk::DayTime &start=gpstk::DayTime::BEGINNING_OF_TIME, const gpstk::DayTime &end=gpstk::DayTime::END_OF_TIME) throw (gpstk::Exception) | |
| Default constructor. | |
| FileFilterFrame (const std::vector< std::string > &fileList, const gpstk::DayTime &start=gpstk::DayTime::BEGINNING_OF_TIME, const gpstk::DayTime &end=gpstk::DayTime::END_OF_TIME) throw (gpstk::Exception) | |
| Takes a list of files to open in lieu of day times. | |
| FileFilterFrame (const std::string &filename, const gpstk::DayTime &start=gpstk::DayTime::BEGINNING_OF_TIME, const gpstk::DayTime &end=gpstk::DayTime::END_OF_TIME) throw (gpstk::Exception) | |
| Takes a file name for a single file filter. | |
| FileFilterFrame (const FileSpec &spec, const gpstk::DayTime &start=gpstk::DayTime::BEGINNING_OF_TIME, const gpstk::DayTime &end=gpstk::DayTime::END_OF_TIME, const std::vector< FileHunter::FilterPair > &filter=std::vector< FileHunter::FilterPair >()) throw (gpstk::Exception) | |
| Uses the FileSpec to retrieve files. | |
| FileFilterFrame & | newSource (const FileSpec &filespec, const gpstk::DayTime &start=gpstk::DayTime::BEGINNING_OF_TIME, const gpstk::DayTime &end=gpstk::DayTime::END_OF_TIME, const std::vector< FileHunter::FilterPair > &filter=std::vector< FileHunter::FilterPair >()) throw (gpstk::Exception) |
| Gets the files from the file spec and the time, then adds the data to the filter. | |
| FileFilterFrame & | newSource (const std::string &filename, const gpstk::DayTime &start=gpstk::DayTime::BEGINNING_OF_TIME, const gpstk::DayTime &end=gpstk::DayTime::END_OF_TIME) throw (gpstk::Exception) |
| Reads in the file and adds the data to the filter. | |
| FileFilterFrame & | newSource (const std::vector< std::string > &fileList, const gpstk::DayTime &start=gpstk::DayTime::BEGINNING_OF_TIME, const gpstk::DayTime &end=gpstk::DayTime::END_OF_TIME) throw (gpstk::Exception) |
| Takes a list of files to open in lieu of day times. | |
| virtual | ~FileFilterFrame () |
| bool | writeFile (const std::string &outputFile, const bool append=false) const throw (gpstk::Exception) |
| Writes the data to the file outputFile, truncating the output file if it already exists unless append is true. | |
| bool | writeFile (FileStream &stream) const throw (gpstk::Exception) |
| Writes the data to the supplied stream. | |
Protected Member Functions | |
| void | init (const std::vector< FileHunter::FilterPair > &filter=std::vector< FileHunter::FilterPair >()) throw (gpstk::Exception) |
| Run init() to load the data into the filter. | |
Protected Attributes | |
| FileSpec | fs |
| The file spec for this filter. | |
| gpstk::DayTime | startTime |
| the start and end dates for the filter. | |
| gpstk::DayTime | endTime |
| the start and end dates for the filter. | |
|
||||||||||||
|
Default constructor.
Definition at line 197 of file FileFilterFrame.hpp. |
|
||||||||||||||||
|
Takes a list of files to open in lieu of day times.
Definition at line 205 of file FileFilterFrame.hpp. |
|
||||||||||||||||
|
Takes a file name for a single file filter. This can throw an exception when there's a file error. Definition at line 221 of file FileFilterFrame.hpp. |
|
||||||||||||||||||||
|
Uses the FileSpec to retrieve files. Use filter like you would in FileHunter, to filter FOR stations, receivers, etc. This can throw an exception when there's a file error. Definition at line 232 of file FileFilterFrame.hpp. |
|
|
Definition at line 150 of file FileFilterFrame.hpp. |
|
|
Run init() to load the data into the filter.
Reimplemented in FileFilterFrameWithHeader. Definition at line 298 of file FileFilterFrame.hpp. References FileHunter::find(), and FileHunter::setFilter(). |
|
||||||||||||||||
|
Takes a list of files to open in lieu of day times.
Reimplemented in FileFilterFrameWithHeader. Definition at line 278 of file FileFilterFrame.hpp. References FileSpec::end, and FileSpec::newSpec(). |
|
||||||||||||||||
|
Reads in the file and adds the data to the filter.
Reimplemented in FileFilterFrameWithHeader. Definition at line 262 of file FileFilterFrame.hpp. References FileSpec::newSpec(). |
|
||||||||||||||||||||
|
Gets the files from the file spec and the time, then adds the data to the filter. Use filter like you would in FileHunter, to filter FOR stations, receivers, etc. Reimplemented in FileFilterFrameWithHeader. Definition at line 245 of file FileFilterFrame.hpp. |
|
|
Writes the data to the supplied stream. This can throw an exception when there's a file error.
Definition at line 361 of file FileFilterFrame.hpp. References index(). |
|
||||||||||||
|
Writes the data to the file outputFile, truncating the output file if it already exists unless append is true. This can throw an exception when there's a file error.
Definition at line 337 of file FileFilterFrame.hpp. References gpstk::FileUtils::makeDir(). |
|
|
the start and end dates for the filter.
Definition at line 189 of file FileFilterFrame.hpp. |
|
|
The file spec for this filter.
Definition at line 187 of file FileFilterFrame.hpp. |
|
|
the start and end dates for the filter.
Definition at line 189 of file FileFilterFrame.hpp. |
1.3.9.1