CVB++ 15.0
Loading...
Searching...
No Matches
ConfigBase< T > Class Template Reference

Base configuration class. More...

#include <cvb/config.hpp>

Inherited by CompositeCodeBase< T >.

Public Member Functions

bool Enabled () const
 Checks if decoding for the code type represented by the derived class is enabled.
 
T & Enable ()
 Enables decoding for the code type represented by the derived class.
 
T & Disable ()
 Disables decoding for the code type represented by the derived class.
 

Friends

class Cvb::CodeReader::Decoder
 

Detailed Description

template<class T>
class Cvb::CodeReader::Config::ConfigBase< T >

Base configuration class.

Template Parameters
TConcrete configuration class.

Member Function Documentation

◆ Disable()

template<class T>
T & Disable ( )

Disables decoding for the code type represented by the derived class.

Returns
A reference to the current configuration object for method chaining.

◆ Enable()

template<class T>
T & Enable ( )

Enables decoding for the code type represented by the derived class.

This function is defined in the ConfigBase template class and can be called from a specific configuration class, such as DataMatrix. When invoked, it enables decoding specifically for the code type associated with that class.

Example:

decoder->Config<DataMatrix>().Enable(); // Enables decoding for DataMatrix codes
T & Enable()
Enables decoding for the code type represented by the derived class.
Definition detail_config_base.hpp:16
Configuration class for Data Matrix codes.
Definition decl_config_2d_codes.hpp:36
static std::unique_ptr< Decoder > Create()
Creates and returns a new Decoder instance.
Definition detail_decoder.hpp:22
Returns
A reference to the current configuration object for method chaining.

◆ Enabled()

template<class T>
bool Enabled ( ) const

Checks if decoding for the code type represented by the derived class is enabled.

Returns
true if decoding is enabled, false otherwise.