VectorNav C++ Library
utilities.h
Go to the documentation of this file.
1 #ifndef _VN_UTILITIES_H_
4 #define _VN_UTILITIES_H_
5 
6 #include <string>
7 #include <vector>
8 
9 #include "int.h"
10 #include "export.h"
11 
13 #define VNAPI_MAJOR 1
14 #define VNAPI_MINOR 1
15 #define VNAPI_PATCH 0
16 #define VNAPI_REVISION 126
17 
18 namespace vn {
19 
22 {
23 
24 public:
25 
29  static int major();
30 
34  static int minor();
35 
39  static int patch();
40 
44  static int revision();
45 
49  static std::string getVersion();
50 
51 };
52 
57 uint8_t toUint8FromHexStr(const char* str);
58 
63 uint16_t stoh(uint16_t sensorOrdered);
64 
69 uint32_t stoh(uint32_t sensorOrdered);
70 
75 uint64_t stoh(uint64_t sensorOrdered);
76 
81 uint8_t countSetBits(uint8_t d);
82 
83 
84 
85 
86 
91 uint8_t to_uint8_from_hexchar(char c);
92 
97 uint8_t to_uint8_from_hexstr(const char* str);
98 
103 uint16_t to_uint16_from_hexstr(const char* str);
104 
105 
106 #if PYTHON
107 
120 vn_proglib_DLLEXPORT bool checkDllValidity(const std::string& dllName,
121  const std::string& workingDirectory,
122  std::vector<std::string>& missingDlls);
123 
124 #endif
125 
126 }
127 
128 #endif
static int revision()
Returns the revision version of the VectorNav library.
static int patch()
Returns the patch version of the VectorNav library.
Class for version information about the VectorNav library.
Definition: utilities.h:21
Definition: attitude.h:8
static std::string getVersion()
Returns the full version of the VectorNav library.
static int major()
Returns the major version of the VectorNav library.
static int minor()
Returns the minor version of the VectorNav library.