# VectorNav C++ Library: include/vn/utilities.h Source File

utilities.h
Go to the documentation of this file.
#ifndef _VN_UTILITIES_H_
#define _VN_UTILITIES_H_
#include <string>
#include <vector>
#include "int.h"
#include "export.h"
#define VNAPI_MAJOR 1
#define VNAPI_MINOR 1
#define VNAPI_PATCH 0
#define VNAPI_REVISION 126
namespace vn {
class ApiVersion
{
public:
static int major();
static int minor();
static int patch();
static int revision();
static std::string getVersion();
};
uint8_t toUint8FromHexStr(const char* str);
uint16_t stoh(uint16_t sensorOrdered);
uint32_t stoh(uint32_t sensorOrdered);
uint64_t stoh(uint64_t sensorOrdered);
uint8_t countSetBits(uint8_t d);
uint8_t to_uint8_from_hexchar(char c);
uint8_t to_uint8_from_hexstr(const char* str);
uint16_t to_uint16_from_hexstr(const char* str);
#if PYTHON
vn_proglib_DLLEXPORT bool checkDllValidity(const std::string& dllName,
const std::string& workingDirectory,
std::vector<std::string>& missingDlls);
#endif
}
#endif
vn::ApiVersion::revision
static int revision()
Returns the revision version of the VectorNav library.
int.h
vn::ApiVersion::patch
static int patch()
Returns the patch version of the VectorNav library.
vn::ApiVersion
Class for version information about the VectorNav library.
Definition: utilities.h:21
vn
Definition: attitude.h:8
vn::ApiVersion::getVersion
static std::string getVersion()
Returns the full version of the VectorNav library.
vn::ApiVersion::major
static int major()
Returns the major version of the VectorNav library.
vn::ApiVersion::minor
static int minor()
Returns the minor version of the VectorNav library.