OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
udpSender.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_FILESTREAM_UDP_SENDER_HPP
2 #define OPENPOSE_FILESTREAM_UDP_SENDER_HPP
3
4 #include <openpose/core/common.hpp>
5
6 namespace op
7 {
8 class OP_API UdpSender
9 {
10 public:
11 UdpSender(const std::string& udpHost, const std::string& udpPort);
12
13 virtual ~UdpSender();
14
15 void sendJointAngles(const double* const adamPosePtr, const int adamPoseRows,
16 const double* const adamTranslationPtr,
17 const double* const adamFaceCoeffsExpPtr, const int faceCoeffRows);
18
19 private:
20 // PIMPL idiom
21 // http://www.cppsamples.com/common-tasks/pimpl.html
22 struct ImplUdpSender;
23 std::shared_ptr<ImplUdpSender> spImpl;
24
25 // PIMP requires DELETE_COPY & destructor, or extra code
26 // http://oliora.github.io/2015/12/29/pimpl-and-rule-of-zero.html
27 DELETE_COPY(UdpSender);
28 };
29 }
30
31 #endif // OPENPOSE_FILESTREAM_UDP_SENDER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::UdpSender
Definition: udpSender.hpp:8
common.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574