The exception object, generated when the checksum of the string is invalid. More...
#include <tleexception.h>
Public Member Functions | |
| tle_checksum_error (const std::string &line, const int expected_checksum, const int actual_checksum) | |
| Constructor. | |
| virtual | ~tle_checksum_error () throw () |
| Destructor. | |
| std::string | line () const throw () |
| Get a line, caused the exception. | |
| int | expected_checksum () const throw () |
| Get expected checksum. | |
| int | actual_checksum () const throw () |
| Get actual checksum. | |
Private Attributes | |
| std::string | m_line |
| line for which the exception is actual | |
| int | m_expected_checksum |
| Expected checksum. | |
| int | m_actual_checksum |
| Actual checksum, specified in the string. | |
The exception object, generated when the checksum of the string is invalid.
Definition at line 91 of file tleexception.h.
| tlelib::tle_checksum_error::tle_checksum_error | ( | const std::string & | line, |
| const int | expected_checksum, | ||
| const int | actual_checksum | ||
| ) | [inline] |
Constructor.
| line | - the string with invalid checksum |
| expected_checksum | - expected checksum for this string |
| actual_checksum | - actual checksum, specified in the string |
Definition at line 103 of file tleexception.h.
References actual_checksum(), expected_checksum(), line(), m_actual_checksum, m_expected_checksum, and m_line.
| virtual tlelib::tle_checksum_error::~tle_checksum_error | ( | ) | throw () [inline, virtual] |
Destructor.
Definition at line 110 of file tleexception.h.
| int tlelib::tle_checksum_error::actual_checksum | ( | ) | const throw () [inline] |
Get actual checksum.
Definition at line 125 of file tleexception.h.
References m_actual_checksum.
Referenced by tle_checksum_error().
| int tlelib::tle_checksum_error::expected_checksum | ( | ) | const throw () [inline] |
Get expected checksum.
Definition at line 120 of file tleexception.h.
References m_expected_checksum.
Referenced by tle_checksum_error().
| std::string tlelib::tle_checksum_error::line | ( | ) | const throw () [inline] |
Get a line, caused the exception.
Definition at line 115 of file tleexception.h.
References m_line.
Referenced by tle_checksum_error().
int tlelib::tle_checksum_error::m_actual_checksum [private] |
Actual checksum, specified in the string.
Definition at line 94 of file tleexception.h.
Referenced by actual_checksum(), and tle_checksum_error().
int tlelib::tle_checksum_error::m_expected_checksum [private] |
Expected checksum.
Definition at line 94 of file tleexception.h.
Referenced by expected_checksum(), and tle_checksum_error().
std::string tlelib::tle_checksum_error::m_line [private] |
line for which the exception is actual
Definition at line 93 of file tleexception.h.
Referenced by line(), and tle_checksum_error().