HORIBA C++ SDK
Library for HORIBA devices
Loading...
Searching...
No Matches
communicator.h
Go to the documentation of this file.
1#ifndef COMMUNICATOR_H
2#define COMMUNICATOR_H
3
4namespace horiba::communication {
5
6class Command;
7class Response;
8
13 public:
14 virtual ~Communicator() = default;
15
19 virtual void open() = 0;
20
24 virtual void close() = 0;
25
31 virtual bool is_open() = 0;
32
40 virtual Response request_with_response(const Command& command) = 0;
41};
42
43} // namespace horiba::communication
44#endif /* ifndef COMMUNICATOR */
Represents a command sent to the ICL.
Definition command.h:13
Interface representing a communication channel with the ICL.
Definition communicator.h:12
virtual bool is_open()=0
Checks if the communication channel is open or not.
virtual Response request_with_response(const Command &command)=0
Sends a command to the ICL and returns the response.
virtual void open()=0
Opens the communication channel with the ICL.
virtual void close()=0
Closes the communication channel with the ICL.
Represents a response of the ICL.
Definition response.h:13
Definition command.h:9