Keyple Service C++ Library - 3.3.5
Component of the Keyple C++ middleware
BasicCardSelectorAdapter.cpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional *
5 * information regarding copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the *
8 * terms of the Eclipse Public License 2.0 which is available at *
9 * http://www.eclipse.org/legal/epl-2.0 *
10 * *
11 * SPDX-License-Identifier: EPL-2.0 *
12 ******************************************************************************/
13
14#include "keyple/core/service/BasicCardSelectorAdapter.hpp"
15
16#include <string>
17
18namespace keyple {
19namespace core {
20namespace service {
21
22const std::string&
23BasicCardSelectorAdapter::getLogicalProtocolName() const
24{
25 return mLogicalProtocolName;
26}
27
28const std::string&
29BasicCardSelectorAdapter::getPowerOnDataRegex() const
30{
31 return mPowerOnDataRegex;
32}
33
34BasicCardSelector&
35BasicCardSelectorAdapter::filterByCardProtocol(
36 const std::string& logicalProtocolName)
37{
38 mLogicalProtocolName = logicalProtocolName;
39
40 return *this;
41}
42
43BasicCardSelector&
44BasicCardSelectorAdapter::filterByPowerOnData(
45 const std::string& powerOnDataRegex)
46{
47 mPowerOnDataRegex = powerOnDataRegex;
48
49 return *this;
50}
51
52} /* namespace service */
53} /* namespace core */
54} /* namespace keyple */