CVB++ 15.0
decl_config_postal_codes.hpp
1#pragma once
2
3#include "../../_cexports/c_code_reader.h"
4
5namespace Cvb
6{
7 CVB_BEGIN_INLINE_NS
8
9 namespace CodeReader
10 {
11 namespace Config
12 {
14
29 class UspsIntelligentMail final : public ConfigBase<UspsIntelligentMail>
30 {
31 friend class Cvb::CodeReader::Decoder;
32
33 private:
34 UspsIntelligentMail(Decoder &decoder) noexcept
35 : ConfigBase<UspsIntelligentMail>(decoder)
36 {
37 }
38 };
39
40 template <>
41 struct Mapper<Symbology::UspsIntelligentMail>
42 {
43 using Type = Config::UspsIntelligentMail;
44 };
45
46 template <>
47 struct ReverseMapper<Config::UspsIntelligentMail>
48 {
49 static constexpr Symbology type = Symbology::UspsIntelligentMail;
50 };
51
53
68 class DutchPost final : public ConfigBase<DutchPost>
69 {
70 friend class Cvb::CodeReader::Decoder;
71
72 private:
73 DutchPost(Decoder &decoder) noexcept
74 : ConfigBase<DutchPost>(decoder)
75 {
76 }
77 };
78
79 template <>
80 struct Mapper<Symbology::DutchPost>
81 {
82 using Type = Config::DutchPost;
83 };
84
85 template <>
86 struct ReverseMapper<Config::DutchPost>
87 {
88 static constexpr Symbology type = Symbology::DutchPost;
89 };
90
92
107 class AustraliaPost final : public ConfigBase<AustraliaPost>
108 {
109 friend class Cvb::CodeReader::Decoder;
110
111 private:
112 AustraliaPost(Decoder &decoder) noexcept
113 : ConfigBase<AustraliaPost>(decoder)
114 {
115 }
116
117 public:
119
123 AustraliaPost &SetStripCheckCharactersEnabled(bool value);
124
126
130 };
131
132 template <>
133 struct Mapper<Symbology::AustraliaPost>
134 {
135 using Type = Config::AustraliaPost;
136 };
137
138 template <>
139 struct ReverseMapper<Config::AustraliaPost>
140 {
141 static constexpr Symbology type = Symbology::AustraliaPost;
142 };
143
145
160 class RoyalMail final : public ConfigBase<RoyalMail>
161 {
162 friend class Cvb::CodeReader::Decoder;
163
164 private:
165 RoyalMail(Decoder &decoder) noexcept
166 : ConfigBase<RoyalMail>(decoder)
167 {
168 }
169
170 public:
172
176 RoyalMail &SetSendCheckCharacterEnabled(bool value);
177
179
182 bool IsSendCheckCharacterEnabled() const;
183 };
184
185 template <>
186 struct Mapper<Symbology::RoyalMail>
187 {
188 using Type = Config::RoyalMail;
189 };
190
191 template <>
192 struct ReverseMapper<Config::RoyalMail>
193 {
194 static constexpr Symbology type = Symbology::RoyalMail;
195 };
196
197 } // namespace Config
198 } // namespace CodeReader
199
200 CVB_END_INLINE_NS
201} // namespace Cvb
Configuration class for Australia Post.
Definition decl_config_postal_codes.hpp:108
bool IsStripCheckCharactersEnabled() const
Checks whether the removal of check characters from decoded data is enabled.
Definition detail_config_postal_codes.hpp:21
AustraliaPost & SetStripCheckCharactersEnabled(bool value)
Enables or disables the removal of check characters from decoded data.
Definition detail_config_postal_codes.hpp:14
Configuration class for Dutch Post (KIX Code).
Definition decl_config_postal_codes.hpp:69
Configuration class for RoyalMail 4-State codes.
Definition decl_config_postal_codes.hpp:161
RoyalMail & SetSendCheckCharacterEnabled(bool value)
Enables or disables adding check character to decoded data.
Definition detail_config_postal_codes.hpp:27
bool IsSendCheckCharacterEnabled() const
Checks whether adding check character to decoded data is enabled.
Definition detail_config_postal_codes.hpp:33
Configuration class for USPS Intelligent Mail.
Definition decl_config_postal_codes.hpp:30
Class for decoding.
Definition decl_decoder.hpp:101
This namespace contains the configuration classes for all supported codes.
Definition decl_config_2d_codes.hpp:14
Namespace for all decoding functionalities.
Definition decl_config_2d_codes.hpp:10
Symbology
Enum class listing all supported symbologies.
Definition decl_config_base.hpp:35
@ AustraliaPost
Australia Post.
Definition decl_config_base.hpp:122
@ RoyalMail
RoyalMail 4-State Code.
Definition decl_config_base.hpp:132
@ DutchPost
DutchPost (KIX Code).
Definition decl_config_base.hpp:127
@ UspsIntelligentMail
USPS Intelligent Mail.
Definition decl_config_base.hpp:137
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17