![]() |
Earth Observation Software Orbit and Attitude Adapater Tool |
![]() |
Interface used to parser the user files to CFI orbit/attitude files. More...
#include <EoOrbAttAdapter.h>
Public Member Functions | |
EoOrbAttAdapter () | |
Empty class Constructor. | |
~EoOrbAttAdapter () | |
Class Destructor. | |
long | getNofItems () |
Get Number of items to be parsed. | |
long | getNofProcessedItems () |
Get Number of processed items. | |
string | getVersion () |
Get tool version. | |
void | setMainConfiguration (string configurationFile) throw (EoAdapterError) |
Set the configuration with the input file name. | |
void | setMainConfiguration (const AdpMainConfiguration &inputConfig) throw (EoAdapterError) |
Set the configuration with the input data object. | |
AdpMainConfiguration | getMainConfiguration () throw (EoAdapterError) |
Get the configuration with the input file name. | |
void | enableOrbitParser () throw (EoAdapterError) |
Enable the orbit parser. | |
void | disableOrbitParser () throw (EoAdapterError) |
Disable the orbit parser. | |
void | enableAttitudeParser () throw (EoAdapterError) |
Enable the orbit parser. | |
void | disableAttitudeParser () throw (EoAdapterError) |
Disable the orbit parser. | |
void | setParser (AdpDefaultParser *inputParser) |
Set the parser to be used by the method "parse" in next calls. | |
void | parse (const string dataFile) throw (EoAdapterError) |
Execute the parser for the input data file. | |
void | parse (const void *data) throw (EoAdapterError) |
Execute the parser for the input data (generic pointer). | |
void | parse () throw (EoAdapterError) |
Execute the parser for the data file set in configuration. | |
void | clearOrbitData () |
Clear internal orbit data. | |
void | clearAttitudeData () |
Delete internal attitude data. | |
string | writeOrbitDataToFile () throw (EoAdapterError) |
Write OSVs to Orbit File (filename will be taken from Main Configuration File) | |
string | writeOrbitDataToFile (const string OutputOrbitFile) throw (EoAdapterError) |
Write OSVs to Orbit File. | |
void | getOrbitData (OrbitFile &orbitFileData) throw (EoAdapterError) |
Get Orbit data file. | |
string | writeAttitudeDataToFile () throw (EoAdapterError) |
Write attitude data to attitude File (filename will be taken from Main Configuration File) | |
string | writeAttitudeDataToFile (const string OutputAttFile) throw (EoAdapterError) |
Write attitude data to attitude File. | |
void | getAttitudeData (AttFile &attitudeFileData) throw (EoAdapterError) |
Get Attitude data file. | |
void | printValidationReport (const string &reportFile) throw (EoAdapterError) |
Print the validation report to the log. | |
Interface used to parser the user files to CFI orbit/attitude files.
EoOrbAttAdapter::EoOrbAttAdapter | ( | ) |
Empty class Constructor.
EoOrbAttAdapter::~EoOrbAttAdapter | ( | ) |
Class Destructor.
void EoOrbAttAdapter::clearAttitudeData | ( | ) |
Delete internal attitude data.
Every time that a file is parsed, the new data is added to the previous parsed files. when calling this method, the stored attitude data is cleaned.
References clearAttitudeData().
Referenced by clearAttitudeData().
void EoOrbAttAdapter::clearOrbitData | ( | ) |
Clear internal orbit data.
Every time that a file is parsed, the new data is added to the previous parsed files. when calling this method, the stored orbit data is cleaned.
References clearOrbitData().
Referenced by clearOrbitData().
void EoOrbAttAdapter::disableAttitudeParser | ( | ) | ||||
throw | ( | EoAdapterError ) |
Disable the orbit parser.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
References disableAttitudeParser().
Referenced by disableAttitudeParser().
void EoOrbAttAdapter::disableOrbitParser | ( | ) | ||||
throw | ( | EoAdapterError ) |
Disable the orbit parser.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
References disableOrbitParser().
Referenced by disableOrbitParser().
void EoOrbAttAdapter::enableAttitudeParser | ( | ) | ||||
throw | ( | EoAdapterError ) |
Enable the orbit parser.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
References enableAttitudeParser().
Referenced by enableAttitudeParser().
void EoOrbAttAdapter::enableOrbitParser | ( | ) | ||||
throw | ( | EoAdapterError ) |
Enable the orbit parser.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
References enableOrbitParser().
Referenced by enableOrbitParser().
void EoOrbAttAdapter::getAttitudeData | ( | AttFile & | attitudeFileData | ) | ||
throw | ( | EoAdapterError ) |
Get Attitude data file.
References getAttitudeData().
Referenced by getAttitudeData().
AdpMainConfiguration EoOrbAttAdapter::getMainConfiguration | ( | ) | ||||
throw | ( | EoAdapterError ) |
Get the configuration with the input file name.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
|
inline |
Get Number of items to be parsed.
|
inline |
Get Number of processed items.
void EoOrbAttAdapter::getOrbitData | ( | OrbitFile & | orbitFileData | ) | ||
throw | ( | EoAdapterError ) |
Get Orbit data file.
References getOrbitData().
Referenced by getOrbitData().
|
inline |
Get tool version.
void EoOrbAttAdapter::parse | ( | ) | ||||
throw | ( | EoAdapterError ) |
Execute the parser for the data file set in configuration.
The parsed data will be stored internally as CFI data (OrbitFile/AttFile). Note that Orbit/Attitude data will be parsed if the parser is enabled.
EoAdapterError | if the data file could not be parsed |
References parse().
void EoOrbAttAdapter::parse | ( | const string | dataFile | ) | ||
throw | ( | EoAdapterError ) |
Execute the parser for the input data file.
The parsed data will be stored internally as CFI data (OrbitFile/AttFile). Note that Orbit/Attitude data will be parsed if the parser is enabled.
dataFile | input data file to parser. |
EoAdapterError | if the data file could not be parsed |
References parse().
Referenced by parse(), parse(), parse(), and printValidationReport().
void EoOrbAttAdapter::parse | ( | const void * | data | ) | ||
throw | ( | EoAdapterError ) |
Execute the parser for the input data (generic pointer).
The parsed data will be stored internally as CFI data (OrbitFile/AttFile). Note that Orbit/Attitude data will be parsed if the parser is enabled.
data | input data to parser. |
EoAdapterError | if the data file could not be parsed |
References parse().
void EoOrbAttAdapter::printValidationReport | ( | const string & | reportFile | ) | ||
throw | ( | EoAdapterError ) |
Print the validation report to the log.
References parse(), and printValidationReport().
Referenced by printValidationReport().
void EoOrbAttAdapter::setMainConfiguration | ( | const AdpMainConfiguration & | inputConfig | ) | ||
throw | ( | EoAdapterError ) |
Set the configuration with the input data object.
inputConfig | configuration data |
EoAdapterError | if configuration was already set |
void EoOrbAttAdapter::setMainConfiguration | ( | string | configurationFile | ) | ||
throw | ( | EoAdapterError ) |
Set the configuration with the input file name.
configurationFile | configuration file (path+name) |
EoAdapterError | if configuration was already set |
void EoOrbAttAdapter::setParser | ( | AdpDefaultParser * | inputParser | ) |
Set the parser to be used by the method "parse" in next calls.
inputParser | parser to be used by the adapter |
References setParser().
Referenced by setParser().
string EoOrbAttAdapter::writeAttitudeDataToFile | ( | ) | ||||
throw | ( | EoAdapterError ) |
Write attitude data to attitude File (filename will be taken from Main Configuration File)
EoAdapterError | if file could not be written |
References writeAttitudeDataToFile().
Referenced by writeAttitudeDataToFile(), and writeAttitudeDataToFile().
string EoOrbAttAdapter::writeAttitudeDataToFile | ( | const string | OutputAttFile | ) | ||
throw | ( | EoAdapterError ) |
Write attitude data to attitude File.
OutputAttFile | filename for the output file |
EoAdapterError | if file could not be written |
References writeAttitudeDataToFile().
string EoOrbAttAdapter::writeOrbitDataToFile | ( | ) | ||||
throw | ( | EoAdapterError ) |
Write OSVs to Orbit File (filename will be taken from Main Configuration File)
EoAdapterError | if file could not be written |
References writeOrbitDataToFile().
Referenced by writeOrbitDataToFile(), and writeOrbitDataToFile().
string EoOrbAttAdapter::writeOrbitDataToFile | ( | const string | OutputOrbitFile | ) | ||
throw | ( | EoAdapterError ) |
Write OSVs to Orbit File.
OutputOrbitFile | filename for the output file |
EoAdapterError | if file could not be written |
References writeOrbitDataToFile().