DEIMOS
Earth Observation Mission CFI Software
DataHandling Software User Manual
ESA

EECFI::TleFile Class Reference

Class for reading/writing Two Line Elements file. More...

Inheritance diagram for EECFI::TleFile:
EECFI::EEFile EECFI::CfiClass

List of all members.

Public Member Functions

 TleFile ()
 Default constructor.
 TleFile (const std::string &fileNam)
 Constructor with file name.
 TleFile (const TleFile &other)
 ~TleFile () NOEXCEPT
 Destructor.
TleFileoperator= (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< TleRectleRec
 Vector of TLE.

Detailed Description

Class for reading/writing Two Line Elements file.


Constructor & Destructor Documentation

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.

Parameters:
other The TleFile to copy from
EECFI::TleFile::~TleFile (  ) 

Destructor.


Member Function Documentation

TleFile & EECFI::TleFile::operator= ( const TleFile other  ) 

Copy assigment operator.

Parameters:
other The TleFile to copy/assign from

References tleRec.

void EECFI::TleFile::read ( const std::string &  satellite  ) 

Read the TLE file.

Parameters:
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.

Parameters:
fileNam Name of the file to write.
tleData Vector of TLE.

References EECFI::CfiError::addMsg(), EECFI::CfiClass::throwWarn, and tleRec.


Member Data Documentation

Vector of TLE.

Referenced by operator=(), read(), and write().


Generated on Mon Dec 11 2023 13:28:17 for by doxygen 1.7.1