ldas-tools-framecpp  2.7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
FrameCPP::Common::CheckSumCRC Class Reference

#include <CheckSum.hh>

Inheritance diagram for FrameCPP::Common::CheckSumCRC:
Inheritance graph
[legend]
Collaboration diagram for FrameCPP::Common::CheckSumCRC:
Collaboration graph
[legend]

Public Types

typedef CheckSum::value_type value_type
 
typedef CheckSum::value_type value_type
 
enum  kind_type {
  UNSET = -1, NONE = 0, CRC = 1, UNSET = -1,
  NONE = 0, CRC = 1
}
 
enum  kind_type {
  UNSET = -1, NONE = 0, CRC = 1, UNSET = -1,
  NONE = 0, CRC = 1
}
 
typedef INT_4U size_type
 
typedef INT_4U size_type
 

Public Member Functions

 CheckSumCRC ()
 
 CheckSumCRC (value_type Value)
 
virtual CheckSumCRCClone () const
 
virtual void Reset ()
 
virtual void calc (const void *Buffer, size_type NBytes)
 
 CheckSumCRC ()
 
 CheckSumCRC (value_type Value)
 
virtual CheckSumCRCClone () const
 
virtual void Reset ()
 
virtual void calc (const void *Buffer, size_type NBytes)
 
kind_type GetType () const
 
kind_type GetType () const
 
value_type value ()
 Things to be do to complete the calculation. More...
 
value_type value ()
 Things to be do to complete the calculation. More...
 

Static Public Member Functions

static CheckSumCreate (kind_type Type)
 
static CheckSumCreate (kind_type Type, value_type Value)
 
static CheckSumCreate (kind_type Type)
 
static CheckSumCreate (kind_type Type, value_type Value)
 
static std::string FormatError (value_type ExpectedValue, value_type CalculatedValue)
 
static std::string FormatError (value_type ExpectedValue, value_type CalculatedValue)
 

Protected Member Functions

 CheckSumCRC (const CheckSumCRC &Source)
 
virtual void finish ()
 
 CheckSumCRC (const CheckSumCRC &Source)
 
virtual void finish ()
 

Protected Attributes

value_type m_value
 

Private Member Functions

void slice_by_1 (const void *Data, size_t Length)
 
void slice_by_8 (const void *Data, size_t Length)
 
void slice_by_1 (const void *Data, size_t Length)
 
void slice_by_8 (const void *Data, size_t Length)
 

Static Private Member Functions

static bool initializer ()
 
static bool initializer ()
 

Private Attributes

bool m_active
 
size_type m_number_of_bytes
 

Static Private Attributes

static INT_4U m_crctab_slow [256]
 
static INT_4U m_crctab [8][256]
 
static const bool initialized = CheckSumCRC::initializer( )
 

Member Typedef Documentation

◆ size_type [1/2]

typedef INT_4U FrameCPP::Common::CheckSum::size_type
inherited

◆ size_type [2/2]

typedef INT_4U FrameCPP::Common::CheckSum::size_type
inherited

◆ value_type [1/2]

◆ value_type [2/2]

Member Enumeration Documentation

◆ kind_type [1/2]

Enumerator
UNSET 
NONE 
CRC 
UNSET 
NONE 
CRC 

◆ kind_type [2/2]

Enumerator
UNSET 
NONE 
CRC 
UNSET 
NONE 
CRC 

Constructor & Destructor Documentation

◆ CheckSumCRC() [1/6]

FrameCPP::Common::CheckSumCRC::CheckSumCRC ( )

◆ CheckSumCRC() [2/6]

FrameCPP::Common::CheckSumCRC::CheckSumCRC ( value_type  Value)

◆ CheckSumCRC() [3/6]

FrameCPP::Common::CheckSumCRC::CheckSumCRC ( const CheckSumCRC Source)
protected

◆ CheckSumCRC() [4/6]

FrameCPP::Common::CheckSumCRC::CheckSumCRC ( )

◆ CheckSumCRC() [5/6]

FrameCPP::Common::CheckSumCRC::CheckSumCRC ( value_type  Value)

◆ CheckSumCRC() [6/6]

FrameCPP::Common::CheckSumCRC::CheckSumCRC ( const CheckSumCRC Source)
protected

Member Function Documentation

◆ calc() [1/2]

void FrameCPP::Common::CheckSumCRC::calc ( const void *  Buffer,
size_type  NBytes 
)
virtual

◆ calc() [2/2]

virtual void FrameCPP::Common::CheckSumCRC::calc ( const void *  Buffer,
size_type  NBytes 
)
virtual

◆ Clone() [1/2]

virtual CheckSumCRC* FrameCPP::Common::CheckSumCRC::Clone ( ) const
virtual

◆ Clone() [2/2]

CheckSumCRC * FrameCPP::Common::CheckSumCRC::Clone ( ) const
virtual

◆ Create() [1/4]

static CheckSum* FrameCPP::Common::CheckSum::Create ( kind_type  Type)
staticinherited

◆ Create() [2/4]

CheckSum * FrameCPP::Common::CheckSum::Create ( kind_type  Type)
staticinherited

◆ Create() [3/4]

CheckSum * FrameCPP::Common::CheckSum::Create ( kind_type  Type,
value_type  Value 
)
staticinherited

◆ Create() [4/4]

static CheckSum* FrameCPP::Common::CheckSum::Create ( kind_type  Type,
value_type  Value 
)
staticinherited

◆ finish() [1/2]

void FrameCPP::Common::CheckSumCRC::finish ( )
protectedvirtual

◆ finish() [2/2]

virtual void FrameCPP::Common::CheckSumCRC::finish ( )
protectedvirtual

◆ FormatError() [1/2]

std::string FrameCPP::Common::CheckSum::FormatError ( value_type  ExpectedValue,
value_type  CalculatedValue 
)
staticinherited

◆ FormatError() [2/2]

static std::string FrameCPP::Common::CheckSum::FormatError ( value_type  ExpectedValue,
value_type  CalculatedValue 
)
staticinherited

◆ GetType() [1/2]

CheckSum::kind_type FrameCPP::Common::CheckSum::GetType ( ) const
inlineinherited

◆ GetType() [2/2]

kind_type FrameCPP::Common::CheckSum::GetType ( ) const
inherited

◆ initializer() [1/2]

bool FrameCPP::Common::CheckSumCRC::initializer ( )
staticprivate

◆ initializer() [2/2]

static bool FrameCPP::Common::CheckSumCRC::initializer ( )
staticprivate

◆ Reset() [1/2]

void FrameCPP::Common::CheckSumCRC::Reset ( )
virtual

Reimplemented from FrameCPP::Common::CheckSum.

◆ Reset() [2/2]

virtual void FrameCPP::Common::CheckSumCRC::Reset ( )
virtual

Reimplemented from FrameCPP::Common::CheckSum.

◆ slice_by_1() [1/2]

void FrameCPP::Common::CheckSumCRC::slice_by_1 ( const void *  Data,
size_t  Length 
)
private

◆ slice_by_1() [2/2]

void FrameCPP::Common::CheckSumCRC::slice_by_1 ( const void *  Data,
size_t  Length 
)
inlineprivate

◆ slice_by_8() [1/2]

void FrameCPP::Common::CheckSumCRC::slice_by_8 ( const void *  Data,
size_t  Length 
)
private

◆ slice_by_8() [2/2]

void FrameCPP::Common::CheckSumCRC::slice_by_8 ( const void *  Data,
size_t  Length 
)
inlineprivate

◆ value() [1/2]

CheckSum::value_type FrameCPP::Common::CheckSum::value ( )
inlineinherited

Things to be do to complete the calculation.

◆ value() [2/2]

value_type FrameCPP::Common::CheckSum::value ( )
inherited

Things to be do to complete the calculation.

Member Data Documentation

◆ initialized

static const bool FrameCPP::Common::CheckSumCRC::initialized = CheckSumCRC::initializer( )
staticprivate

◆ m_active

bool FrameCPP::Common::CheckSumCRC::m_active
private

◆ m_crctab

static INT_4U FrameCPP::Common::CheckSumCRC::m_crctab
staticprivate

◆ m_crctab_slow

static INT_4U FrameCPP::Common::CheckSumCRC::m_crctab_slow
staticprivate

◆ m_number_of_bytes

size_type FrameCPP::Common::CheckSumCRC::m_number_of_bytes
private

◆ m_value

value_type FrameCPP::Common::CheckSum::m_value
protectedinherited

The documentation for this class was generated from the following files: