13#include <neoapi/neoapi.hpp>
41 return std::get<int>(x);
57 return std::get<double>(x);
73 return std::get<std::string>(x);
95std::vector<std::string>
split(
const std::string& s,
char delimiter);
108std::string
strip(
const std::string& s,
const std::string& delimiters =
" \t\r\n");
121std::string
stripString(
const std::string& s,
const std::string& strippedString);
151std::vector<irsol::types::byte_t>
stringToBytes(
const std::string& s);
clock_t::duration duration_t
Alias for a duration of time as defined by clock_t.
std::variant< int, double, std::string > protocol_value_t
Variant type representing protocol values that can be one of several types.
clock_t::time_point timepoint_t
Alias for a point in time as defined by clock_t.
constexpr const char * defaultCameraSerialNumber()
Default serial number for selecting the system camera.
NeoAPI::Cam loadDefaultCamera()
Loads the default camera device.
double toDouble(const irsol::types::protocol_value_t &x)
Converts a protocol value to a double.
std::string bytesToString(const std::vector< irsol::types::byte_t > &input)
Converts a std::vector of irsol::types::byte_t to a std::string.
std::string strip(const std::string &s, const std::string &delimiters=" \t\r\n")
Removes leading and trailing characters from a string.
NeoAPI::CamInfoList & discoverCameras()
Discovers all cameras connected to the system.
int toInt(const irsol::types::protocol_value_t &x)
Converts a protocol value to an integer.
std::string stripString(const std::string &s, const std::string &strippedString)
Removes all occurrences of a specific substring from the start and end of a string.
std::string uuid()
Generates a new UUID string.
std::vector< std::string > split(const std::string &s, char delimiter)
Splits a string into tokens based on a delimiter.
std::vector< irsol::types::byte_t > stringToBytes(const std::string &s)
Converts a std::string to a std::vector of irsol::types::byte_t.
std::string toString(const irsol::types::protocol_value_t &x)
Converts a protocol value to a string.
std::string timestampToString(irsol::types::timepoint_t tp)
Converts a steady_clock time point to a human-readable string.
std::string durationToString(irsol::types::duration_t dr)
Converts a duration to a human-readable string.
Thread-safe queue implementation with optional bounded capacity.
Core type definitions for networking, time handling, and protocol values used throughout the irsol li...