#include <Utils.h>
|
| static bool | saveRawFile (string fileName, uint8_t *data, size_t size) |
| |
| static string | makeDir (string path) |
| |
| static string | exec (const string &cmd, bool debug=false) |
| |
| static vector< uint8_t > | extractBytes (uint64_t hexData, uint8_t numberOfBytes) |
| |
| static uint64_t | combineBytes (vector< uint8_t > byteArray) |
| |
| static bool | inRange (int64_t value, Range range) |
| |
| static bool | fileExists (const std::string &path) |
| |
| static bool | directoryExists (const std::string &path) |
| |
| static bool | caseInsensitiveSearch (std::string const str, std::string const pattern) |
| |
| static string | trim (string str) |
| |
| static void | getFilesInDirectory (string path, vector< string > &files, bool recursive=true) |
| |
| static string | readTextFile (string filePath) |
| |
| static uint16_t | convertToU12p4 (double value) |
| |
| static double | convertFrom12p4 (uint16_t value) |
| |
| static uint16_t | convertTo10p6 (double value) |
| |
| static double | convertFrom10p6 (uint16_t value) |
| |
| static uint16_t | convertToUFormat (double value, uint8_t format) |
| |
| static double | convertFromUFormat (uint16_t value, uint8_t format) |
| |
| static uint64_t | mergefrom8Bytes (uint8_t *bytes) |
| |
| static void | extractTo8Bytes (uint64_t timeInSec, uint8_t *bytes) |
| |
Definition at line 23 of file Utils.h.
◆ caseInsensitiveSearch()
| bool Utils::caseInsensitiveSearch |
( |
std::string const |
str, |
|
|
std::string const |
pattern |
|
) |
| |
|
static |
◆ combineBytes()
| uint64_t Utils::combineBytes |
( |
vector< uint8_t > |
byteArray | ) |
|
|
static |
◆ convertFrom10p6()
| double Utils::convertFrom10p6 |
( |
uint16_t |
value | ) |
|
|
static |
◆ convertFrom12p4()
| double Utils::convertFrom12p4 |
( |
uint16_t |
value | ) |
|
|
static |
◆ convertFromUFormat()
| double Utils::convertFromUFormat |
( |
uint16_t |
value, |
|
|
uint8_t |
format |
|
) |
| |
|
static |
◆ convertTo10p6()
| uint16_t Utils::convertTo10p6 |
( |
double |
value | ) |
|
|
static |
◆ convertToU12p4()
| uint16_t Utils::convertToU12p4 |
( |
double |
value | ) |
|
|
static |
◆ convertToUFormat()
| uint16_t Utils::convertToUFormat |
( |
double |
value, |
|
|
uint8_t |
format |
|
) |
| |
|
static |
◆ directoryExists()
| bool Utils::directoryExists |
( |
const std::string & |
path | ) |
|
|
static |
◆ exec()
| std::string Utils::exec |
( |
const string & |
cmd, |
|
|
bool |
debug = false |
|
) |
| |
|
static |
◆ extractBytes()
| vector< uint8_t > Utils::extractBytes |
( |
uint64_t |
hexData, |
|
|
uint8_t |
numberOfBytes |
|
) |
| |
|
static |
◆ extractTo8Bytes()
| void Utils::extractTo8Bytes |
( |
uint64_t |
timeInSec, |
|
|
uint8_t * |
bytes |
|
) |
| |
|
static |
◆ fileExists()
| bool Utils::fileExists |
( |
const std::string & |
path | ) |
|
|
static |
◆ getFilesInDirectory()
| void Utils::getFilesInDirectory |
( |
string |
path, |
|
|
vector< string > & |
files, |
|
|
bool |
recursive = true |
|
) |
| |
|
static |
◆ inRange()
| bool Utils::inRange |
( |
int64_t |
value, |
|
|
Range |
range |
|
) |
| |
|
static |
◆ makeDir()
| string Utils::makeDir |
( |
string |
path | ) |
|
|
static |
◆ mergefrom8Bytes()
| uint64_t Utils::mergefrom8Bytes |
( |
uint8_t * |
bytes | ) |
|
|
static |
◆ readTextFile()
| string Utils::readTextFile |
( |
string |
filePath | ) |
|
|
static |
◆ saveRawFile()
| bool Utils::saveRawFile |
( |
string |
fileName, |
|
|
uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
static |
◆ trim()
| string Utils::trim |
( |
string |
str | ) |
|
|
static |
The documentation for this class was generated from the following files: