#include <SonarFileRecordFactory.h>
Inheritance diagram for SonarFileRecordFactory:
Public Member Functions | |
SonarFileRecordFactory (const LPCTSTR &fqfn) | |
Ctor. | |
~SonarFileRecordFactory () | |
Dtor. | |
virtual SmartPointer< SystemRecord > | record ()=0 |
Read the record at the current file position. | |
virtual bool | operator++ ()=0 |
Advance to the next record. | |
bool | eof () const |
Test whether the file is at EOF. | |
LPCTSTR | fileName () const |
Give the file name from which records are produced. | |
Protected Attributes | |
ACE_FILE_IO | _file |
off_t | _record_position |
bool | _eof |
This class is the base class for classes that are able to parse sonar files. These files are characterized by having a number of record types multplexed into a single file. The ordering of these records is determined by the sonar in question but are usually produced at the time the data is collected. Sub classes of this class effecively de-multiplex these records.
Because of the nature of these data objects of this type do not, generally, support radom access (e.g. seek()).
Definition at line 28 of file SonarFileRecordFactory.h.
SonarFileRecordFactory::SonarFileRecordFactory | ( | const LPCTSTR & | fqfn | ) |
Ctor.
Attach to the sonar file.
fqfn | The sonar file. |
SonarFileRecordFactory::~SonarFileRecordFactory | ( | ) |
Dtor.
virtual SmartPointer<SystemRecord> SonarFileRecordFactory::record | ( | ) | [pure virtual] |
Read the record at the current file position.
Implemented in SimulatorSonarFileRecordFactory.
virtual bool SonarFileRecordFactory::operator++ | ( | ) | [pure virtual] |
Advance to the next record.
Implemented in SimulatorSonarFileRecordFactory.
bool SonarFileRecordFactory::eof | ( | ) | const |
Test whether the file is at EOF.
LPCTSTR SonarFileRecordFactory::fileName | ( | ) | const |
Give the file name from which records are produced.
ACE_FILE_IO SonarFileRecordFactory::_file [protected] |
Definition at line 75 of file SonarFileRecordFactory.h.
off_t SonarFileRecordFactory::_record_position [protected] |
Definition at line 76 of file SonarFileRecordFactory.h.
bool SonarFileRecordFactory::_eof [protected] |
Definition at line 77 of file SonarFileRecordFactory.h.