Earth Observation Mission CFI Software DataHandling Software User Manual |
Class for reading/writing Two Line Elements file. More...
Public Member Functions | |
TleFile () | |
Default constructor. | |
TleFile (const std::string &fileNam) | |
Constructor with file name. | |
TleFile (const TleFile &other) | |
~TleFile () NOEXCEPT | |
Destructor. | |
TleFile & | operator= (const TleFile &other) |
void | read (const std::string &satellite) |
Read the TLE file. | |
void | write (const std::string &fileNam, const std::vector< TleRec > &tleData) |
Write the file. | |
Public Attributes | |
std::vector< TleRec > | tleRec |
Vector of TLE. |
Class for reading/writing Two Line Elements file.
EECFI::TleFile::TleFile | ( | ) |
Default constructor.
EECFI::TleFile::TleFile | ( | const std::string & | fileNam | ) | [explicit] |
Constructor with file name.
EECFI::TleFile::TleFile | ( | const TleFile & | other | ) |
Copy constructor.
other | The TleFile to copy from |
EECFI::TleFile::~TleFile | ( | ) |
Destructor.
void EECFI::TleFile::read | ( | const std::string & | satellite | ) |
Read the TLE file.
satellite | name as it appears in line 0 for a TLE; if it is empty (""), the whole file is read, otherwise only the lines for the specified satellite. |
References EECFI::EEFile::fileName, EECFI::CfiClass::throwWarn, and tleRec.
void EECFI::TleFile::write | ( | const std::string & | fileNam, | |
const std::vector< TleRec > & | tleData | |||
) |
Write the file.
fileNam | Name of the file to write. | |
tleData | Vector of TLE. |
References EECFI::CfiError::addMsg(), EECFI::CfiClass::throwWarn, and tleRec.
std::vector<TleRec> EECFI::TleFile::tleRec |
Vector of TLE.
Referenced by operator=(), read(), and write().