14#include "keyple/card/calypso/CalypsoExtensionService.hpp"
16#include "keyple/card/calypso/CalypsoCardApiFactoryAdapter.hpp"
17#include "keyple/core/common/CommonApiProperties.hpp"
18#include "keypop/card/CardApiProperties.hpp"
19#include "keypop/reader/ReaderApiProperties.hpp"
25using keyple::core::common::CommonApiProperties_VERSION;
26using keypop::card::CardApiProperties_VERSION;
27using keypop::reader::ReaderApiProperties_VERSION;
29std::shared_ptr<CalypsoExtensionService> CalypsoExtensionService::mInstance;
31std::shared_ptr<CalypsoExtensionService>
32CalypsoExtensionService::getInstance()
34 if (mInstance ==
nullptr) {
35 mInstance = std::shared_ptr<CalypsoExtensionService>(
36 new CalypsoExtensionService());
42std::shared_ptr<CalypsoCardApiFactory>
43CalypsoExtensionService::getCalypsoCardApiFactory()
45 return std::make_shared<CalypsoCardApiFactoryAdapter>();
49CalypsoExtensionService::getReaderApiVersion()
const
51 return ReaderApiProperties_VERSION;
55CalypsoExtensionService::getCardApiVersion()
const
57 return CardApiProperties_VERSION;
61CalypsoExtensionService::getCommonApiVersion()
const
63 return CommonApiProperties_VERSION;