libxcks  0.1.0.1
libxcks::DefaultCKFConfigurationProvider Class Reference

Default configuration provider for ChecksumFormatter. More...

#include <ckformatter.hpp>

Inheritance diagram for libxcks::DefaultCKFConfigurationProvider:
Collaboration diagram for libxcks::DefaultCKFConfigurationProvider:

Public Member Functions

 DefaultCKFConfigurationProvider ()=default
 Default constructor. More...
 
 DefaultCKFConfigurationProvider (const DefaultCKFConfigurationProvider &)=delete
 Deleted copy constructor. More...
 
DefaultCKFConfigurationProvideroperator= (const DefaultCKFConfigurationProvider &)=delete
 Deleted assignment operator. More...
 
virtual ~DefaultCKFConfigurationProvider ()=default
 Destructor. More...
 
ChecksumFormatter::NumericBase getNumericBase (const ChecksumAlgoId type) const override
 Returns the numeric base for a given type of algorithm of checksums. More...
 
bool getUpperCase (const ChecksumAlgoId type) const override
 Returns whether the output will be in uppercase for a given type of algorithm of checksums. More...
 
const ChecksumFormatter::PositionsgetSpacesPositions (const ChecksumAlgoId type) const override
 Returns the positions of the spaces between two bytes for a given type of algorithm of checksums. More...
 
- Public Member Functions inherited from libxcks::ChecksumFormatter::ConfigurationProvider
 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...
 

Detailed Description

Default configuration provider for ChecksumFormatter.

Provides values in hexadecimal, uppercase and with no spaces for all the algorithms.

Definition at line 209 of file ckformatter.hpp.

Constructor & Destructor Documentation

◆ DefaultCKFConfigurationProvider() [1/2]

libxcks::DefaultCKFConfigurationProvider::DefaultCKFConfigurationProvider ( )
default

Default constructor.

◆ DefaultCKFConfigurationProvider() [2/2]

libxcks::DefaultCKFConfigurationProvider::DefaultCKFConfigurationProvider ( const DefaultCKFConfigurationProvider )
delete

Deleted copy constructor.

◆ ~DefaultCKFConfigurationProvider()

virtual libxcks::DefaultCKFConfigurationProvider::~DefaultCKFConfigurationProvider ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getNumericBase()

ChecksumFormatter::NumericBase libxcks::DefaultCKFConfigurationProvider::getNumericBase ( const ChecksumAlgoId  type) const
inlineoverridevirtual

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.

Implements libxcks::ChecksumFormatter::ConfigurationProvider.

Definition at line 233 of file ckformatter.hpp.

◆ getSpacesPositions()

const ChecksumFormatter::Positions& libxcks::DefaultCKFConfigurationProvider::getSpacesPositions ( const ChecksumAlgoId  type) const
inlineoverridevirtual

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.

Implements libxcks::ChecksumFormatter::ConfigurationProvider.

Definition at line 259 of file ckformatter.hpp.

◆ getUpperCase()

bool libxcks::DefaultCKFConfigurationProvider::getUpperCase ( const ChecksumAlgoId  type) const
inlineoverridevirtual

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.

Implements libxcks::ChecksumFormatter::ConfigurationProvider.

Definition at line 246 of file ckformatter.hpp.

◆ operator=()

DefaultCKFConfigurationProvider& libxcks::DefaultCKFConfigurationProvider::operator= ( const DefaultCKFConfigurationProvider )
delete

Deleted assignment operator.


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