TLELib  0.1.0
tlelib::tle_checksum_error Class Reference

The exception object, generated when the checksum of the string is invalid. More...

#include <tleexception.h>

List of all members.

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.

Detailed Description

The exception object, generated when the checksum of the string is invalid.

Definition at line 91 of file tleexception.h.


Constructor & Destructor Documentation

tlelib::tle_checksum_error::tle_checksum_error ( const std::string &  line,
const int  expected_checksum,
const int  actual_checksum 
) [inline]

Constructor.

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


Member Function Documentation

int tlelib::tle_checksum_error::actual_checksum ( ) const throw () [inline]

Get actual checksum.

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

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

Returns:
The line, caused the exception.

Definition at line 115 of file tleexception.h.

References m_line.

Referenced by tle_checksum_error().


Member Data Documentation

Actual checksum, specified in the string.

Definition at line 94 of file tleexception.h.

Referenced by actual_checksum(), and tle_checksum_error().

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Defines