Keyple Service C++ Library - 3.3.5
Component of the Keyple C++ middleware
LocalConfigurableReaderAdapter.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/LocalConfigurableReaderAdapter.hpp"
15
16#include <memory>
17#include <string>
18
19namespace keyple {
20namespace core {
21namespace service {
22
23LocalConfigurableReaderAdapter::LocalConfigurableReaderAdapter(
24 std::shared_ptr<ConfigurableReaderSpi> configurableReaderSpi,
25 const std::string& pluginName)
26: LocalReaderAdapter(configurableReaderSpi, pluginName)
27{
28}
29
30void
31LocalConfigurableReaderAdapter::activateProtocol(
32 const std::string& readerProtocol, const std::string& applicationProtocol)
33{
34 activateReaderProtocol(readerProtocol, applicationProtocol);
35}
36
37void
38LocalConfigurableReaderAdapter::deactivateProtocol(
39 const std::string& readerProtocol)
40{
41 deactivateReaderProtocol(readerProtocol);
42}
43
44const std::string&
45LocalConfigurableReaderAdapter::getCurrentProtocol() const
46{
47 return getCurrentPhysicalProtocolName();
48}
49
50} /* namespace service */
51} /* namespace core */
52} /* namespace keyple */