Keyple Service C++ Library - 3.3.5
Component of the Keyple C++ middleware
PluginEventAdapter.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/PluginEventAdapter.hpp"
15
16#include <string>
17#include <vector>
18
19namespace keyple {
20namespace core {
21namespace service {
22
24
25PluginEventAdapter::PluginEventAdapter(
26 const std::string& pluginName,
27 const std::string& readerName,
28 const Type type)
29: mPluginName(pluginName)
30, mReaderNames({readerName})
31, mType(type)
32{
33}
34
35PluginEventAdapter::PluginEventAdapter(
36 const std::string& pluginName,
37 const std::vector<std::string>& readerNames,
38 const Type type)
39: mPluginName(pluginName)
40, mReaderNames(readerNames)
41, mType(type)
42{
43}
44
45const std::string&
46PluginEventAdapter::getPluginName() const
47{
48 return mPluginName;
49}
50
51const std::vector<std::string>
52PluginEventAdapter::getReaderNames() const
53{
54 return mReaderNames;
55}
56
57Type
58PluginEventAdapter::getType() const
59{
60 return mType;
61}
62
63} /* namespace service */
64} /* namespace core */
65} /* namespace keyple */