OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 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 
5 
6 namespace op
7 {
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
28  };
29 }
30 
31 #endif // OPENPOSE_FILESTREAM_UDP_SENDER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:33
Definition: udpSender.hpp:8
#define OP_API
Definition: macros.hpp:18
std::string string
Definition: cl2.hpp:574