Commit 4f8bd49e authored by Martin Marinov's avatar Martin Marinov

Add Checksum::Level parameter to Checksum::NumberT

parent fb7a78b8
// (C) Copyright 2019 by Autodesk, Inc.
// (C) Copyright 2020 by Autodesk, Inc.
#ifndef BASE_CHECKSUMLOGVALUET_HH_INCLUDE
#define BASE_CHECKSUMLOGVALUET_HH_INCLUDE
......@@ -45,18 +45,19 @@ private:
};
/*!
Generic checksum class to record and compare a value of a certain type.
Generic checksum class to record and compare a value of a certain type.
*/
template <typename ValueT, class CompareT = DefaultCompareT<ValueT>>
class NumberT : public Object
{
public:
NumberT(
const char* const _name, //!<[in] Checksum name.
const CompareT& _comp = CompareT() //!<[in] Comparison function.
)
: Object(_name), comp_(_comp)
{}
NumberT(const char* const _name, //!<[in] Checksum name
const Level _lvl = L_ALL, //!<[in] Checksum level
const CompareT& _comp = CompareT() //!<[in] Comparison function
)
: Object(_name, _lvl), comp_(_comp)
{
}
protected:
//! Generic implementation of number data comparison
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment