![]() |
IRSOL
C++ code implementing socket server for interacting with Baumer camera.
|
General utility functions used throughout the irsol
library.
More...
#include "irsol/queue.hpp"
#include "irsol/types.hpp"
#include <neoapi/neoapi.hpp>
#include <string>
#include <utility>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | irsol |
namespace | irsol::utils |
Contains general utility functions used throughout the irsol library. | |
namespace | irsol::utils::internal |
Contains internal helper constants and functions. | |
Functions | |
int | irsol::utils::toInt (const irsol::types::protocol_value_t &x) |
Converts a protocol value to an integer. | |
double | irsol::utils::toDouble (const irsol::types::protocol_value_t &x) |
Converts a protocol value to a double. | |
std::string | irsol::utils::toString (const irsol::types::protocol_value_t &x) |
Converts a protocol value to a string. | |
std::string | irsol::utils::uuid () |
Generates a new UUID string. | |
std::vector< std::string > | irsol::utils::split (const std::string &s, char delimiter) |
Splits a string into tokens based on a delimiter. | |
std::string | irsol::utils::strip (const std::string &s, const std::string &delimiters=" \t\r\n") |
Removes leading and trailing characters from a string. | |
std::string | irsol::utils::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 | irsol::utils::timestampToString (irsol::types::timepoint_t tp) |
Converts a steady_clock time point to a human-readable string. | |
std::string | irsol::utils::durationToString (irsol::types::duration_t dr) |
Converts a duration to a human-readable string. | |
std::vector< irsol::types::byte_t > | irsol::utils::stringToBytes (const std::string &s) |
Converts a std::string to a std::vector of irsol::types::byte_t. | |
std::string | irsol::utils::bytesToString (const std::vector< irsol::types::byte_t > &input) |
Converts a std::vector of irsol::types::byte_t to a std::string. | |
NeoAPI::Cam | irsol::utils::loadDefaultCamera () |
Loads the default camera device. | |
NeoAPI::CamInfoList & | irsol::utils::discoverCameras () |
Discovers all cameras connected to the system. | |
constexpr const char * | irsol::utils::internal::defaultCameraSerialNumber () |
Default serial number for selecting the system camera. | |
General utility functions used throughout the irsol
library.
This header provides helper functions for type conversions, string manipulation, timestamp formatting, and camera device management via the NeoAPI.
Definition in file utils.hpp.