|
Wasatch.VCPP 1.0.19
Visual C++ driver for Wasatch Photonics spectrometers
|
Internal class providing static utility functions for strings and whatnot. More...
#include <Util.h>
Static Public Member Functions | |
| static std::string | sprintf (const char *fmt,...) |
| static std::string | toHex (const std::vector< uint8_t > &data) |
| static std::string | toHex (const uint8_t *data, int len) |
| static std::string | toLower (const std::string &s) |
| static std::string | timestamp () |
| includes milliseconds on Windows | |
| static void | sleepMS (int ms) |
| template<typename T > | |
| static std::string | join (const T &values, const char *fmt, const char *delim=", ") |
| Joins an iterable containter to a delimited string. More... | |
Internal class providing static utility functions for strings and whatnot.
Some of these methods are defined to wrap platform-specific implementation.
|
inlinestatic |
Joins an iterable containter to a delimited string.
| values | (Input) some STL collection (e.g. a set<int> or vector<double>) |
| fmt | (Input) printf-style format code for collection elements (e.g. "%d" or "%.2f") |
| delim | (Input) delimiter (i.e. ", " [default]) |