Keypop Storage Card C++ API - 1.2.0
Component of the Keypop C++ API
StorageCardApiFactory.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2026 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at *
6 * https://opensource.org/licenses/MIT *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <memory>
14
15#include "keypop/reader/CardReader.hpp"
20
21namespace keypop {
22namespace storagecard {
23
24using keypop::reader::CardReader;
29
36public:
40 virtual ~StorageCardApiFactory() = default;
41
49 virtual std::unique_ptr<StorageCardSelectionExtension>
51
60 virtual std::unique_ptr<StorageCardTransactionManager>
62 const std::shared_ptr<CardReader>& reader,
63 const std::shared_ptr<StorageCard>& card) = 0;
64};
65
66} /* namespace storagecard */
67} /* namespace keypop */
virtual std::unique_ptr< StorageCardTransactionManager > createStorageCardTransactionManager(const std::shared_ptr< CardReader > &reader, const std::shared_ptr< StorageCard > &card)=0
Creates an instance of StorageCardTransactionManager.
virtual std::unique_ptr< StorageCardSelectionExtension > createStorageCardSelectionExtension(ProductType productType)=0
Creates a new instance of StorageCardSelectionExtension.
Represents the different types of storage cards supported by the library.
Definition: ProductType.hpp:22
Represents a storage card with various methods to retrieve information and data from it.
Definition: StorageCard.hpp:32
Extends the CardSelectionExtension interface of the "Keypop Reader API" to provide means to define op...
Provides methods to manage APDU exchanges with a storage card.