Make build on win

This commit is contained in:
John Zhao
2018-04-23 23:11:11 +08:00
parent 145046249d
commit 9cf58f6e70
21 changed files with 317 additions and 45 deletions

View File

@@ -21,7 +21,7 @@ struct xu;
} // namespace uvc
class Channels {
class MYNTEYE_API Channels {
public:
typedef enum Channel {
CHANNEL_CAM_CTRL = 0x0100,

View File

@@ -10,7 +10,7 @@ MYNTEYE_BEGIN_NAMESPACE
namespace files {
bool mkdir(const std::string &path);
MYNTEYE_API bool mkdir(const std::string &path);
} // namespace files

View File

@@ -11,7 +11,7 @@
MYNTEYE_BEGIN_NAMESPACE
class strings_error : public std::runtime_error {
class MYNTEYE_API strings_error : public std::runtime_error {
public:
explicit strings_error(const std::string &what_arg) noexcept
: std::runtime_error(std::move(what_arg)) {}
@@ -21,17 +21,21 @@ class strings_error : public std::runtime_error {
namespace strings {
MYNTEYE_API
int hex2int(const std::string &text);
MYNTEYE_API
bool starts_with(const std::string &text, const std::string &prefix);
MYNTEYE_API
std::vector<std::string> split(
const std::string &text, const std::string &delimiters);
void ltrim(std::string &s); // NOLINT
void rtrim(std::string &s); // NOLINT
void trim(std::string &s); // NOLINT
MYNTEYE_API void ltrim(std::string &s); // NOLINT
MYNTEYE_API void rtrim(std::string &s); // NOLINT
MYNTEYE_API void trim(std::string &s); // NOLINT
MYNTEYE_API
std::string trim_copy(const std::string &text);
} // namespace strings

View File

@@ -28,7 +28,7 @@ MYNTEYE_BEGIN_NAMESPACE
/**
* Version.
*/
class Version {
class MYNTEYE_API Version {
public:
using size_t = std::size_t;
using value_t = std::uint8_t;
@@ -77,7 +77,7 @@ class Version {
/**
* Hardware version.
*/
class HardwareVersion : public Version {
class MYNTEYE_API HardwareVersion : public Version {
public:
using flag_t = std::bitset<8>;
@@ -93,7 +93,7 @@ class HardwareVersion : public Version {
/**
* Type.
*/
class Type {
class MYNTEYE_API Type {
public:
using size_t = std::size_t;
using value_t = std::uint16_t;
@@ -115,7 +115,7 @@ class Type {
* @ingroup datatypes
* Device infomation.
*/
struct DeviceInfo {
struct MYNTEYE_API DeviceInfo {
std::string name;
std::string serial_number;
Version firmware_version;