libxcks  0.1.0.1
libxcks::ChecksumFormatter::ConfigurationProvider Class Referenceabstract

Configuration provider for ChecksumFormatter. More...

#include <ckformatter.hpp>

Inheritance diagram for libxcks::ChecksumFormatter::ConfigurationProvider:

Public Member Functions

 ConfigurationProvider ()=default
 Default constructor. More...
 
 ConfigurationProvider (const ConfigurationProvider &)=delete
 Deleted copy constructor. More...
 
ConfigurationProvideroperator= (const ConfigurationProvider &)=delete
 Deleted assignment operator. More...
 
virtual ~ConfigurationProvider ()=default
 Destructor. More...
 
virtual NumericBase getNumericBase (const ChecksumAlgoId type) const =0
 Returns the numeric base for a given type of algorithm of checksums. More...
 
virtual bool getUpperCase (const ChecksumAlgoId type) const =0
 Returns whether the output will be in uppercase for a given type of algorithm of checksums. More...
 
virtual const PositionsgetSpacesPositions (const ChecksumAlgoId type) const =0
 Returns the positions of the spaces between two bytes for a given type of algorithm of checksums. More...
 

Detailed Description

Configuration provider for ChecksumFormatter.

Definition at line 68 of file ckformatter.hpp.

Constructor & Destructor Documentation

◆ ConfigurationProvider() [1/2]

libxcks::ChecksumFormatter::ConfigurationProvider::ConfigurationProvider ( )
default

Default constructor.

◆ ConfigurationProvider() [2/2]

libxcks::ChecksumFormatter::ConfigurationProvider::ConfigurationProvider ( const ConfigurationProvider )
delete

Deleted copy constructor.

◆ ~ConfigurationProvider()

virtual libxcks::ChecksumFormatter::ConfigurationProvider::~ConfigurationProvider ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getNumericBase()

virtual NumericBase libxcks::ChecksumFormatter::ConfigurationProvider::getNumericBase ( const ChecksumAlgoId  type) const
pure virtual

Returns the numeric base for a given type of algorithm of checksums.

Parameters
[in]typeThe type of algorithm of checksums.
Returns
The numeric base for a given type of algorithm of checksums.

Implemented in libxcks::DefaultCKFConfigurationProvider.

◆ getSpacesPositions()

virtual const Positions& libxcks::ChecksumFormatter::ConfigurationProvider::getSpacesPositions ( const ChecksumAlgoId  type) const
pure virtual

Returns the positions of the spaces between two bytes for a given type of algorithm of checksums.

Parameters
[in]typeThe type of algorithm of checksums.
Returns
The positions of the spaces between two bytes for a given type of algorithm of checksums.

Implemented in libxcks::DefaultCKFConfigurationProvider.

◆ getUpperCase()

virtual bool libxcks::ChecksumFormatter::ConfigurationProvider::getUpperCase ( const ChecksumAlgoId  type) const
pure virtual

Returns whether the output will be in uppercase for a given type of algorithm of checksums.

Parameters
[in]typeThe type of algorithm of checksums.
Returns
Whether the output will be in uppercase for a given type of algorithm of checksums.

Implemented in libxcks::DefaultCKFConfigurationProvider.

◆ operator=()

ConfigurationProvider& libxcks::ChecksumFormatter::ConfigurationProvider::operator= ( const ConfigurationProvider )
delete

Deleted assignment operator.


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