24 #ifndef INC_CKFORMATTER_HPP_443C2F6F_1843_46B8_B365_FC45329314CD
25 #define INC_CKFORMATTER_HPP_443C2F6F_1843_46B8_B365_FC45329314CD
119 #if defined(_MSC_VER) && defined(LIBXCKS_SHARED)
137 const std::string& algoName,
const bool lookInAltNames =
true);
143 #if defined(_MSC_VER) && defined(LIBXCKS_SHARED)
159 std::string format(
const uint8_t* value,
const size_t size);
162 bool getUpperCase()
const;
165 void setUpperCase(
const bool isUpperCase);
177 void setSpacesPositions(
const std::string& spacesPositions);
180 void setSpacesPositions(
const Positions& spacesPositions);
184 const uint8_t* value,
const size_t size,
185 const std::string& algoName,
186 const bool lookInAltNames =
true);
190 const uint8_t* value,
const size_t size,
198 static Positions toSpacesPositions(
const std::string& spacesPositions);
235 return ChecksumFormatter::NumericBase::hexadecimal;
261 return defaultPositions;
Stores the value of a checksum.
Stores the value of a checksum.
Default configuration provider for ChecksumFormatter.
ChecksumFormatter::NumericBase getNumericBase(const ChecksumAlgoId type) const override
Returns the numeric base for a given type of algorithm of checksums.
DefaultCKFConfigurationProvider(const DefaultCKFConfigurationProvider &)=delete
Deleted copy constructor.
DefaultCKFConfigurationProvider & operator=(const DefaultCKFConfigurationProvider &)=delete
Deleted assignment operator.
bool getUpperCase(const ChecksumAlgoId type) const override
Returns whether the output will be in uppercase for a given type of algorithm of checksums.
const ChecksumFormatter::Positions & getSpacesPositions(const ChecksumAlgoId type) const override
Returns the positions of the spaces between two bytes for a given type of algorithm of checksums.
DefaultCKFConfigurationProvider()=default
Default constructor.
virtual ~DefaultCKFConfigurationProvider()=default
Destructor.
ChecksumAlgoId
Ids of algorithms of checksums.