CVB++ 14.0
reader_config_base.hpp
1#pragma once
2
3#include "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
19 class ReaderConfigBase : public ConfigBase
20 {
21 public:
22
24
29 void SetInverse(bool inverse)
30 {
31 if (inverse_ != inverse)
32 SetDirty();
33 inverse_ = inverse;
34 }
35
37
42 bool Inverse() const
43 {
44 return inverse_;
45 }
46
47 protected:
48 SmartBool inverse_ = false;
49
50 protected:
52 : ConfigBase()
53 {
54 }
55
56 };
57 }
58 using ReaderConfigBase = Config::ReaderConfigBase;
59 using ReaderConfigBasePtr = std::shared_ptr<ReaderConfigBase>;
60 }
61
62 CVB_END_INLINE_NS
63}
Configuration to access parameters of ReaderConfigBase.
Definition: reader_config_base.hpp:20
void SetInverse(bool inverse)
Code is inverted (white on black)/not inverted.
Definition: reader_config_base.hpp:29
bool Inverse() const
Returns whether the code is inverted (white on black) or not.
Definition: reader_config_base.hpp:42
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24