diff --git a/_device_utils_8h_source.html b/_device_utils_8h_source.html index 3209c81..c3a2bfc 100644 --- a/_device_utils_8h_source.html +++ b/_device_utils_8h_source.html @@ -71,50 +71,25 @@
23 #include "MMDeviceConstants.h"
24 #include <vector>
25 #include <string>
-
26 #ifdef _WIN32
-
27 #include <time.h>
-
28 #include <windows.h>
-
29 #endif
-
30 
-
31 #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
-
32  #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
-
33 #else
-
34  #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
-
35 #endif
-
36 
-
37 // Definition of struct timezone and gettimeofday can be disabled in case
-
38 // interfacing with some other system that also tries to define conflicting
-
39 // symbols (e.g. Python <= 3.6).
-
40 #if defined(_WIN32) && !defined(MMDEVICE_NO_GETTIMEOFDAY)
-
41 struct timezone
-
42 {
-
43  int tz_minuteswest; /* minutes W of Greenwich */
-
44  int tz_dsttime; /* type of dst correction */
-
45 };
-
46 
-
47 int gettimeofday(struct timeval *tv__, struct timezone *tz__);
-
48 
-
49 #endif
-
50 
-
51 
-
52 class CDeviceUtils
-
53 {
-
54 public:
-
55  static bool CopyLimitedString(char* pszTarget, const char* pszSource);
-
56  static unsigned GetMaxStringLength();
-
57  static const char* ConvertToString(long lnVal);
-
58  static const char* ConvertToString(double dVal);
-
59  static const char* ConvertToString(int val);
-
60  static const char* ConvertToString(bool val);
-
61  static void Tokenize(const std::string& str, std::vector<std::string>& tokens, const std::string& delimiters = ",");
-
62  static void SleepMs(long ms);
-
63  static void NapMicros(unsigned long microsecs);
-
64  static std::string HexRep(std::vector<unsigned char> );
-
65  static bool CheckEnvironment(std::string environment);
-
66 private:
-
67  static char m_pszBuffer[MM::MaxStrLength];
-
68 };
-
CDeviceUtils
Definition: DeviceUtils.h:53
+
26 
+
27 class CDeviceUtils
+
28 {
+
29 public:
+
30  static bool CopyLimitedString(char* pszTarget, const char* pszSource);
+
31  static unsigned GetMaxStringLength();
+
32  static const char* ConvertToString(long lnVal);
+
33  static const char* ConvertToString(double dVal);
+
34  static const char* ConvertToString(int val);
+
35  static const char* ConvertToString(bool val);
+
36  static void Tokenize(const std::string& str, std::vector<std::string>& tokens, const std::string& delimiters = ",");
+
37  static void SleepMs(long ms);
+
38  static void NapMicros(unsigned long microsecs);
+
39  static std::string HexRep(std::vector<unsigned char> );
+
40  static bool CheckEnvironment(std::string environment);
+
41 private:
+
42  static char m_pszBuffer[MM::MaxStrLength];
+
43 };
+
CDeviceUtils
Definition: DeviceUtils.h:28
CDeviceUtils::ConvertToString
static const char * ConvertToString(long lnVal)
Definition: DeviceUtils.cpp:65
CDeviceUtils::Tokenize
static void Tokenize(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=",")
Definition: DeviceUtils.cpp:131
CDeviceUtils::CopyLimitedString
static bool CopyLimitedString(char *pszTarget, const char *pszSource)
Definition: DeviceUtils.cpp:39