OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
op::String Class Reference

#include <string.hpp>

Public Member Functions

 String ()
 String (const char *charPtr)
 String (const std::string &string)
const std::string & getStdString () const
bool empty () const

Detailed Description

String: Basic container for std::string to avoid std::string in the WrapperStructXXX classes. Otherwise, cryptic runtime DLL errors could occur when exporting OpenPose to other projects using different STL DLLs.

Definition at line 14 of file string.hpp.

Constructor & Destructor Documentation

◆ String() [1/3]

op::String::String ( )

◆ String() [2/3]

op::String::String ( const char *  charPtr)

It will force a copy of the char* of std::string to avoid DLL runtime errors. Example usages: std::string stdString = "This is a std::string"; String string(stdString.c_str());

◆ String() [3/3]

op::String::String ( const std::string &  string)

It will force a copy of string

Member Function Documentation

◆ empty()

bool op::String::empty ( ) const

◆ getStdString()

const std::string& op::String::getStdString ( ) const

The documentation for this class was generated from the following file: