12#ifndef DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_FAKECARDREADERBASE_HPP_
13#define DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_FAKECARDREADERBASE_HPP_
32#include "nlohmann/json.hpp"
44namespace datahandlinglibs {
61 void init(std::shared_ptr<appfwk::ConfigurationManager> cfg);
64 virtual std::shared_ptr<datahandlinglibs::SourceEmulatorConcept>
68 void do_conf(
const nlohmann::json& );
69 void do_scrap(
const nlohmann::json& );
70 void do_start(
const nlohmann::json& );
71 void do_stop(
const nlohmann::json& );
79 std::shared_ptr<appfwk::ConfigurationManager>
m_cfg;
81 std::map<std::string, std::shared_ptr<datahandlinglibs::SourceEmulatorConcept>>
m_source_emus;
FakeCardReaderBase & operator=(FakeCardReaderBase &&)=delete
FakeCardReaderBase is not move-assignable.
virtual ~FakeCardReaderBase()
void do_stop(const nlohmann::json &)
std::unique_ptr< datahandlinglibs::FileSourceBuffer > m_source_buffer
void init(std::shared_ptr< appfwk::ConfigurationManager > cfg)
std::string get_fcr_name()
FakeCardReaderBase(FakeCardReaderBase &&)=delete
FakeCardReaderBase is not move-constructible.
std::map< std::string, std::shared_ptr< datahandlinglibs::SourceEmulatorConcept > > m_source_emus
FakeCardReaderBase & operator=(const FakeCardReaderBase &)=delete
FakeCardReaderBase is not copy-assignable.
FakeCardReaderBase(const FakeCardReaderBase &)=delete
FakeCardReaderBase is not copy-constructible.
std::shared_ptr< appfwk::ConfigurationManager > m_cfg
void do_start(const nlohmann::json &)
FakeCardReaderBase(const std::string &name)
FakeCardReaderBase Constructor.
virtual std::shared_ptr< datahandlinglibs::SourceEmulatorConcept > create_source_emulator(std::string qi, std::atomic< bool > &run_marker)=0
void do_scrap(const nlohmann::json &)
std::atomic< bool > m_run_marker
void do_conf(const nlohmann::json &)
std::atomic< bool > run_marker
Global atomic for process lifetime.