Earth Observation Mission CFI Software DataHandling Software User Manual |
Class for reading/writing Orbit Scenario files. More...
Public Member Functions | |
OsfFile () | |
Default constructor. | |
OsfFile (const std::string &fileNam) | |
Constructor with file name. | |
OsfFile (const OsfFile &other) | |
~OsfFile () NOEXCEPT | |
Destructor. | |
OsfFile & | operator= (const OsfFile &other) |
void | read () |
Read the file data block. | |
void | write (const std::string &fileNam, const FixedHeader &fixedHead, const std::vector< OsfRec > &osfData) |
Write the file. | |
void | write (const FixedHeader &fixedHead, const std::vector< OsfRec > &osfData) |
Write the file using the existing fileName. | |
long | xsltAdd () const |
Add xslt reference with default stylesheet. | |
Public Attributes | |
std::vector< OsfRec > | osfRec |
Vector of state vectors. |
Class for reading/writing Orbit Scenario files.
EECFI::OsfFile::OsfFile | ( | ) |
Default constructor.
EECFI::OsfFile::OsfFile | ( | const std::string & | fileNam | ) | [explicit] |
Constructor with file name.
EECFI::OsfFile::OsfFile | ( | const OsfFile & | other | ) |
Copy constructor.
other | The OsfFile to copy from |
EECFI::OsfFile::~OsfFile | ( | ) |
Destructor.
void EECFI::OsfFile::read | ( | ) |
void EECFI::OsfFile::write | ( | const FixedHeader & | fixedHead, | |
const std::vector< OsfRec > & | osfData | |||
) |
Write the file using the existing fileName.
fixedHead | FixedHeader object with fixed header data. | |
osfData | Vector of orbit scenario records. |
References EECFI::EEFile::fileName, and write().
void EECFI::OsfFile::write | ( | const std::string & | fileNam, | |
const FixedHeader & | fixedHead, | |||
const std::vector< OsfRec > & | osfData | |||
) |
Write the file.
fileNam | Name of the file to write. | |
fixedHead | FixedHeader object with fixed header data. | |
osfData | Vector of orbit scenario records. |
References EECFI::FixedHeader::creationDate, EECFI::FixedHeader::creator, EECFI::FixedHeader::creatorVersion, EECFI::FixedHeader::fileClass, EECFI::FixedHeader::fileDescription, EECFI::FixedHeader::fileName, EECFI::FixedHeader::fileType, EECFI::FixedHeader::mission, osfRec, EECFI::FixedHeader::schema, EECFI::FixedHeader::system, EECFI::CfiClass::throwWarn, EECFI::FixedHeader::valStartDate, EECFI::FixedHeader::valStopDate, and EECFI::FixedHeader::version.
Referenced by write().
long EECFI::OsfFile::xsltAdd | ( | ) | const |
Add xslt reference with default stylesheet.
References EECFI::EEFile::fileName.
std::vector<OsfRec> EECFI::OsfFile::osfRec |
Vector of state vectors.
Referenced by operator=(), read(), and write().