51 #include <boost/uuid/uuid.hpp> 52 #include <boost/uuid/uuid_generators.hpp> 53 #include <boost/uuid/uuid_io.hpp> 66 typedef boost::uuids::uuid
UUID;
69 template <
typename StreamUnderlay>
73 const char* buffer =
reinterpret_cast<const char*
>(uuid.data);
74 s.
write(buffer, UUID::static_size());
79 template <
typename StreamUnderlay>
83 char* buffer =
reinterpret_cast<char*
>(uuid.data);
84 s.
read(buffer, UUID::static_size());
104 std::stringstream ss(str);
112 MIRA_JSON_TRAIT(std::string,
UUID)
121 inline UUID reverse_cast<
UUID>(
const std::string& value)
std::string toString< UUID >(const UUID &value, int precision)
specialization for toString
Definition: UUID.h:93
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
void read(T *data, std::size_t count)
Definition: BinaryStream.h:602
Contains toString and fromString functions for converting data types to strings and the other way rou...
Type trait that indicates whether a type can be serialized as an atomic value.
Definition: IsAtomicSerializable.h:83
MIRA_BASE_EXPORT std::istream & operator>>(std::istream &stream, RSAKey &key)
The '>>' operator for RSAKey.
std::string toString(const T &value, int precision=-1)
Converts any data type to string (the data type must support the stream << operator).
Definition: ToString.h:256
Output stream adapter that can be assigned to any output stream and allows binary output using the <<...
Definition: BinaryStream.h:293
std::string cast< UUID >(const UUID &value)
Definition: UUID.h:115
Input stream adapter that can be assigned to any input stream and allows binary input using the >> st...
Definition: BinaryStream.h:523
Contains the BinaryIStream and BinaryOStream classes for fast and efficient streaming of binary data...
Provides type trait that indicates whether a type can be serialized as atomic value.
void write(const T *data, std::size_t count)
Definition: BinaryStream.h:370
PropertyHint precision(int p)
Sets the attribute "precision".
Definition: PropertyHint.h:285
UUID fromString< UUID >(const std::string &str)
specialization for fromString
Definition: UUID.h:102
boost::uuids::uuid UUID
Shorter name for boost uuid.
Definition: UUID.h:66