4#ifdef STARFLEETTOOLBOX_EXPORTS
5#define UTILS __declspec(dllexport)
7#define UTILS __declspec(dllimport)
16typedef int MEASURMENT_UNIT;
29 static double ToInches(
double metricMilimeters);
36 static double ToMilimeters(
double imperialInches);
43 static int16_t be16_to_cpu_signed(
string recvBuffer);
50 static int16_t be16_to_cpu_signed(
char recvChar);
58 static int16_t be16_to_cpu_signed(
char high,
char low);
65 static uint16_t be16_to_cpu_unsigned(
string recvBuffer);
72 static uint16_t be16_to_cpu_unsigned(
char recvChar);
80 static uint16_t be16_to_cpu_unsigned(
char high,
char low);
89 static string ReplaceAll(
string str,
const string& from,
const string& to);
97 static vector<string> Split(
string toSplit,
string delimiter);
104 static string ConvertToHexRepresentation8(int8_t toConvert);
111 static string ConvertToHexRepresentation16(int16_t toConvert);
118 static string ConvertToHexRepresentation32(int32_t toConvert);
125 static string ConvertToHexRepresentation64(int64_t toConvert);
132 static int8_t ConvertHexTo8Bit(
char* toConvert);
139 static int16_t ConvertHexTo16Bit(
char* toConvert);
146 static int32_t ConvertHexTo32Bit(
char* toConvert);
153 static int64_t ConvertHexTo64Bit(
char* toConvert);
160 static uint8_t ConvertHexToUnsigned8Bit(
char* toConvert);
167 static uint16_t ConvertHexToUnsigned16Bit(
char* toConvert);
174 static uint32_t ConvertHexToUnsigned32Bit(
char* toConvert);
181 static uint64_t ConvertHexToUnsigned64Bit(
char* toConvert);
188 static string ExtractIpModel(
const char* toFromat);
195 static string RemoveTrailingZeros(std::string toClean);
Common utility class.
Definition Utility.h:22