Open3D (C++ API)  0.18.0
ConnectionBase.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <memory>
11 
12 namespace zmq {
13 class message_t;
14 class socket_t;
15 } // namespace zmq
16 
17 namespace open3d {
18 namespace io {
19 namespace rpc {
20 
23 public:
25  virtual ~ConnectionBase(){};
26 
28  virtual std::shared_ptr<zmq::message_t> Send(zmq::message_t& send_msg) = 0;
29  virtual std::shared_ptr<zmq::message_t> Send(const void* data,
30  size_t size) = 0;
31 };
32 } // namespace rpc
33 } // namespace io
34 } // namespace open3d
Base class for all connections.
Definition: ConnectionBase.h:22
virtual std::shared_ptr< zmq::message_t > Send(zmq::message_t &send_msg)=0
Function for sending data wrapped in a zmq message object.
virtual ~ConnectionBase()
Definition: ConnectionBase.h:25
virtual std::shared_ptr< zmq::message_t > Send(const void *data, size_t size)=0
ConnectionBase()
Definition: ConnectionBase.h:24
int size
Definition: FilePCD.cpp:40
const char const char value recording_handle imu_sample recording_handle uint8_t data
Definition: K4aPlugin.cpp:269
Definition: PinholeCameraIntrinsic.cpp:16
Definition: ConnectionBase.h:12