7 #ifndef IFM3D_DEVICE_UTIL_H
8 #define IFM3D_DEVICE_UTIL_H
12 #include <ifm3d/device/module_device.h>
20 IFM3D_EXPORT std::string& ltrim(std::string& str,
21 const std::string& chars =
"\t\n\v\f\r ");
26 IFM3D_EXPORT std::string& rtrim(std::string& str,
27 const std::string& chars =
"\t\n\v\f\r ");
32 IFM3D_EXPORT std::string& trim(std::string& str,
33 const std::string& chars =
"\t\n\v\f\r ");
38 IFM3D_EXPORT std::vector<std::string> split(
const std::string& in,
41 IFM3D_EXPORT std::string base64_encode(
const std::vector<uint8_t>& data);
43 IFM3D_EXPORT std::vector<uint8_t> base64_decode(
const std::string& base64);
45 IFM3D_EXPORT
bool IsStdinAvailable(
int timeoutSeconds = 2);
49 #endif // IFM3D_CAMERA_UTIL_H