3 #include "reader_2d_config_base.hpp" 11 using namespace Internal;
29 if(composition_ != composition)
31 composition_ = composition;
54 if(orientation_ != orientation)
56 orientation_ = orientation;
114 isActiveOut = pConfig->ReadFromHandle(guard);
119 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override 121 CExports::cvbbool_t active;
125 CVB_CALL_CAPI(CvcBcGetRSS(reinterpret_cast<std::intptr_t>(guard.Handle()), &active,
131 types_ = static_cast<RssTypes>(tmpTypes);
132 composition_ = static_cast<RssComposition>(tmpComposite);
133 orientation_ = static_cast<CodeOrientation>(tmpDirection);
134 return SmartBool(active);
137 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override 139 Internal::DoResCall([&]()
141 return CVB_CALL_CAPI(CvcBcSetRSS(reinterpret_cast<std::intptr_t>(guard.Handle()),
145 static_cast<short>(types_),
146 static_cast<short>(composition_),
147 static_cast<short>(orientation_)));
152 : Reader2DConfigBase()
RssTypes
Types of RSS codes to read.
Definition: barcode.hpp:406
Configuration to access parameters of Reader2DConfigBase.
Definition: reader_2d_config_base.hpp:18
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:96
CodeOrientation
Directions that a four state code may have.
Definition: barcode.hpp:189
Root namespace for the Image Manager interface.
Definition: version.hpp:11
RssComposition
Composition flags for RSS codes.
Definition: barcode.hpp:427