7#ifndef LOGICALACCESS_CARDSERVICE_HPP
8#define LOGICALACCESS_CARDSERVICE_HPP
12#include <logicalaccess/lla_core_api.hpp>
16#define EXCEPTION_MSG_AUTHENTICATE \
17 "Authenticate failed."
18#define EXCEPTION_MSG_LOADKEY \
20#define EXCEPTION_MSG_NOKEY \
22#define EXCEPTION_MSG_READ \
23 "Read operation failed."
24#define EXCEPTION_MSG_WRITE \
25 "Write operation failed."
26#define EXCEPTION_MSG_CHANGEKEY \
49class LLA_CORE_API
CardService :
public std::enable_shared_from_this<CardService>
The base card service class for all services.
Definition: cardservice.hpp:50
virtual std::string getCSType()=0
CardServiceType d_serviceType
Card service type.
Definition: cardservice.hpp:87
std::shared_ptr< Chip > d_chip
Chip object.
Definition: cardservice.hpp:82
virtual ~CardService()=default
std::shared_ptr< Chip > getChip() const
Definition: cardservice.hpp:67
CardServiceType
The card services.
Definition: cardservice.hpp:35
@ CST_CHALLENGE_RESPONSE
Definition: cardservice.hpp:43
@ CST_STORAGE
Definition: cardservice.hpp:39
@ CST_NFC_TAG
Definition: cardservice.hpp:38
@ CST_IDENTITY
Definition: cardservice.hpp:41
@ CST_ACCESS_CONTROL
Definition: cardservice.hpp:37
@ CST_UNDEFINED
Definition: cardservice.hpp:36
@ CST_UID_CHANGER
Definition: cardservice.hpp:40
@ CST_JSON_DUMP
Definition: cardservice.hpp:42