YARP
Yet Another Robot Platform
RpcClient.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_OS_RPCCLIENT_H
8 #define YARP_OS_RPCCLIENT_H
9 
11 
12 namespace yarp {
13 namespace os {
14 
23 {
24 public:
28  RpcClient();
29 
33  ~RpcClient() override;
34 
35  // Non-copyable
36  RpcClient(const RpcClient& alt) = delete;
37  const RpcClient& operator=(const RpcClient& alt) = delete;
38 
39  // documented in UnbufferedContactable
40  bool read(PortReader& reader, bool willReply = false) override;
41 
42  // documented in UnbufferedContactable
43  bool reply(PortWriter& writer) override;
44 
45  // documented in UnbufferedContactable
46  bool replyAndDrop(PortWriter& writer) override;
47 
48  void setInputMode(bool expectInput) override;
49  void setOutputMode(bool expectOutput) override;
50  void setRpcMode(bool expectRpc) override;
51 
52  Port& asPort() override;
53  const Port& asPort() const override;
54 
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56 private:
57  class Private;
58  Private* mPriv;
59 #endif // DOXYGEN_SHOULD_SKIP_THIS
60 };
61 
62 } // namespace os
63 } // namespace yarp
64 
65 #endif // YARP_OS_RPCCLIENT_H
A default implementation of an abstract port.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:25
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition: PortWriter.h:24
A mini-server for network communication.
Definition: Port.h:47
A port that is specialized as an RPC client.
Definition: RpcClient.h:23
const RpcClient & operator=(const RpcClient &alt)=delete
RpcClient(const RpcClient &alt)=delete
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
Definition: ImageFile.cpp:922
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18