Earth Observation Mission CFI Software EECommon Software User Manual |
Class to manage the CFI exceptions. More...
Public Member Functions | |
CfiError () | |
Empty constructor. | |
CfiError (InternalError const &ie) | |
Constructor with an InternalError object as argument. | |
CfiError (const CfiError &ce) | |
Copy constructor. | |
~CfiError () NOEXCEPT | |
Destructor. | |
long | status () const |
Get the status value of CFI function. | |
void | getCodes (std::vector< long > &codes, long &libCode, long &funCode) const |
Method to get the error codes. | |
std::vector< std::string > & | getMsg (std::vector< std::string > &messages) const |
Method to get the error messages. | |
void | addMsg (const std::string &msg) |
Add another messsage to the error list. | |
Static Public Member Functions | |
static void | setVerbose (long lib) |
Method to switch on the verbosity of the library. | |
static void | setSilent (long lib) |
Method to switch off the verbosity of the library. |
Class to manage the CFI exceptions.
The exceptions thrown due to errors in the execution of all the CFI functions have to be catched using this class.
EECFI::CfiError::CfiError | ( | ) |
Empty constructor.
EECFI::CfiError::CfiError | ( | InternalError const & | ie | ) | [explicit] |
Constructor with an InternalError object as argument.
ie | Pointer to InternalError. |
EECFI::CfiError::~CfiError | ( | ) |
Destructor.
void EECFI::CfiError::addMsg | ( | const std::string & | msg | ) |
Add another messsage to the error list.
msg | Vector where error messages will be stored. |
void EECFI::CfiError::getCodes | ( | std::vector< long > & | codes, | |
long & | libCode, | |||
long & | funCode | |||
) | const |
Method to get the error codes.
std::vector<std::string>& EECFI::CfiError::getMsg | ( | std::vector< std::string > & | messages | ) | const |
Method to get the error messages.
void EECFI::CfiError::setSilent | ( | long | lib | ) | [static] |
Method to switch off the verbosity of the library.
void EECFI::CfiError::setVerbose | ( | long | lib | ) | [static] |
Method to switch on the verbosity of the library.
long EECFI::CfiError::status | ( | ) | const |
Get the status value of CFI function.