CVB++ 14.0
reader_with_boolean_check_digit_config_base.hpp
1#pragma once
2
3#include "reader_common_1d_config_base.hpp"
4
5namespace Cvb
6{
7 CVB_BEGIN_INLINE_NS
8
9 namespace Barcode
10 {
11 using namespace Internal;
12
13 namespace Config
14 {
15
17
20 {
21 public:
22
24
29 void SetEvaluateCheckDigit(bool evalCheckDigit)
30 {
31 if (evalCheckDigit_ != evalCheckDigit)
32 SetDirty();
33 evalCheckDigit_ = evalCheckDigit;
34 }
35
37
42 bool EvaluateCheckDigit() const
43 {
44 return evalCheckDigit_;
45 }
46
47
48
49 protected:
50 SmartBool evalCheckDigit_;
51
52 protected:
55 {
56 evalCheckDigit_ = true;
57 }
58
59 };
60 }
61
62 using ReaderWithBooleanCheckDigitConfigBase = Config::ReaderWithBooleanCheckDigitConfigBase;
63 using ReaderWithBooleanCheckDigitConfigBasePtr = std::shared_ptr<ReaderWithBooleanCheckDigitConfigBase>;
64 }
65
66 CVB_END_INLINE_NS
67}
Configuration to access parameters of ReaderCommon1DConfigBase.
Definition: reader_common_1d_config_base.hpp:19
Configuration to access parameters of ReaderWithBooleanCheckDigitConfigBase.
Definition: reader_with_boolean_check_digit_config_base.hpp:20
bool EvaluateCheckDigit() const
Returns the evaluate/ignore check digit.
Definition: reader_with_boolean_check_digit_config_base.hpp:42
void SetEvaluateCheckDigit(bool evalCheckDigit)
Sets the evaluate/ignore check digit.
Definition: reader_with_boolean_check_digit_config_base.hpp:29
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24