3#include <logicalaccess/lla_core_api.hpp>
6#include <nlohmann/json_fwd.hpp>
11#define JSON_DUMP_CARDSERVICE "JSONDump"
42 void configure(
const std::string &json_template);
50 std::map<std::string, std::shared_ptr<Format>>
formats_;
51 std::map<std::string, std::shared_ptr<Key>>
keys_;
55 void extract_formats(
const nlohmann::json & json);
61 virtual std::shared_ptr<Key>
create_key(
const nlohmann::json &key_description) = 0;
63 void extract_keys(
const nlohmann::json & json);
The base card service class for all services.
Definition: cardservice.hpp:50
Definition: json_dump_card_service.hpp:23
bool configured_
Definition: json_dump_card_service.hpp:72
std::map< std::string, std::shared_ptr< Key > > keys_
Definition: json_dump_card_service.hpp:51
virtual std::shared_ptr< Key > create_key(const nlohmann::json &key_description)=0
std::map< std::string, std::shared_ptr< Format > > formats_
Definition: json_dump_card_service.hpp:50
std::string getCSType() override
Definition: json_dump_card_service.hpp:31
std::map< std::string, std::shared_ptr< FormatInfos > > format_infos_
Definition: json_dump_card_service.hpp:52
virtual void configure_format_infos(const nlohmann::json &json)=0
#define JSON_DUMP_CARDSERVICE
Definition: json_dump_card_service.hpp:11
CardServiceType
The card services.
Definition: cardservice.hpp:35
@ CST_JSON_DUMP
Definition: cardservice.hpp:42