Zao SDK for Jetson / libzep API Reference
Loading...
Searching...
No Matches
FactoryInterface.hpp
1/*
2 * Copyright (c) 2022-2023, Soliton Systems K.K. All rights reserved.
3 * Use in source and binary forms, with or without modification,
4 * is permitted provided that the following a condition is met:
5 *
6 * Use is permitted only in accordance with the terms and
7 * conditions set forth in the Software License Agreement available
8 * at https://zao-sdk.org/license-agreement/.
9 */
10#ifndef ZEP_SERIAL_FACTORY_INTERFACE_HPP_
11#define ZEP_SERIAL_FACTORY_INTERFACE_HPP_
12
13#include <memory>
14#include <string>
15
16#include "TunnelInterface.hpp"
17
18namespace zep {
19
23namespace serial {
24
28class FactoryInterface {
29 public:
35 virtual std::unique_ptr<TunnelInterface> CreateTunnel(
36 const std::string& stream_name) = 0;
37
38 virtual ~FactoryInterface() noexcept = default;
39};
40
41} // namespace serial
42} // namespace zep
43
44#endif // ZEP_SERIAL_FACTORY_INTERFACE_HPP_
factory function interface for serial communication tunneling related streams
Definition FactoryInterface.hpp:28
virtual std::unique_ptr< TunnelInterface > CreateTunnel(const std::string &stream_name)=0
Tunnelのインスタンスを生成する。
Namespace for ZEP SDK.
Definition FactoryInterface.hpp:19