OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
string.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_CORE_STRING_HPP
2 #define OPENPOSE_CORE_STRING_HPP
3 
4 #include <memory> // std::shared_ptr
5 #include <string>
7 
8 namespace op
9 {
14  class OP_API String
15  {
16  public:
17  String();
18 
24  String(const char* charPtr);
25 
29  explicit String(const std::string& string);
30 
31  const std::string& getStdString() const;
32 
33  bool empty() const;
34 
35  private:
36  // PIMPL idiom
37  // http://www.cppsamples.com/common-tasks/pimpl.html
38  struct ImplString;
39  std::shared_ptr<ImplString> spImpl;
40  };
41 }
42 
43 #endif // OPENPOSE_CORE_STRING_HPP
String(const std::string &string)
const std::string & getStdString() const
String(const char *charPtr)
bool empty() const
#define OP_API
Definition: macros.hpp:18