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  void sendJointAngles(const double* const adamPosePtr, const int adamPoseRows,
14  const double* const adamTranslationPtr,
15  const double* const adamFaceCoeffsExpPtr, const int faceCoeffRows);
16 
17  private:
18  // PIMPL idiom
19  // http://www.cppsamples.com/common-tasks/pimpl.html
20  struct ImplUdpSender;
21  std::shared_ptr<ImplUdpSender> spImpl;
22 
23  // PIMP requires DELETE_COPY & destructor, or extra code
24  // http://oliora.github.io/2015/12/29/pimpl-and-rule-of-zero.html
26  };
27 }
28 
29 #endif // OPENPOSE_FILESTREAM_UDP_SENDER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:31
Definition: udpSender.hpp:8
#define OP_API
Definition: macros.hpp:16
std::string string
Definition: cl2.hpp:574