0.4.3
Client.h
浏览该文件的文档.
1//
2// Created by ALSON08 on 2022/7/5.
3//
4
5#ifndef ALSON_COMMUNICATION_CLIENT_CLIENT_H
6#define ALSON_COMMUNICATION_CLIENT_CLIENT_H
7
8
9// std
10#include <string>
11#include <memory>
12
13// alson
17
18
19namespace ALSON {
20
21
39
40public:
43
44 Client(const Client&) = delete;
45 Client& operator=(const Client&) = delete;
46 Client(Client&&) = delete;
47 Client& operator=(Client&&) = delete;
48
49public:
66 void connect(const std::string& serverIp, int serverPort);
67
80 void disconnect();
81
97
114 template<typename T>
116 return T(m_clientContextPtr);
117 }
118
136
151 std::string getServerIp();
152
168
183 std::string getServerAddress();
184
200
217 void setHeartbeatTimeout(int heartbeatTimeout);
218
235
251
265
280 static void initLog(const std::string& configurationFilePath);
281
282protected:
284};
285
286
287} // namespace ALSON
288
289
290#endif // !ALSON_COMMUNICATION_CLIENT_CLIENT_H
void setHeartbeatTimeout(int heartbeatTimeout)
Client(Client &&)=delete
Client & operator=(const Client &)=delete
void destroyServer()
std::string getServerIp()
void disconnect()
ClientContextPtr m_clientContextPtr
T createDeviceController()
DeviceParameterManager createDeviceParameterManager()
Client & operator=(Client &&)=delete
int getHeartbeatTimeout()
int getServerPort()
std::string getServerAddress()
bool isConnected()
static void initLog(const std::string &configurationFilePath)
Client(const Client &)=delete
void updateClock()
void setClientEventListener(const BaseClientEventListenerPtr &listenerPtr)
void connect(const std::string &serverIp, int serverPort)
std::shared_ptr< ClientContext > ClientContextPtr
#define ALSON_API
std::shared_ptr< BaseClientEventListener > BaseClientEventListenerPtr
My Custom Doxygen Footer
Data Processing Programmer's Guide 0.4.3
Copyright © 2014-2024 Henan Alson Intelligent Technology Co, Ltd 河南埃尔森智能科技有限公司 版权所有 豫ICP备15002212号