51 #include <boost/uuid/uuid.hpp> 52 #include <boost/uuid/uuid_generators.hpp> 53 #include <boost/uuid/uuid_io.hpp> 69 typedef boost::uuids::uuid
UUID;
72 template <
typename StreamUnderlay>
76 #if BOOST_VERSION < 108600 77 const char* buffer =
reinterpret_cast<const char*
>(uuid.data);
79 const char* buffer =
reinterpret_cast<const char*
>(uuid.data());
81 s.
write(buffer, UUID::static_size());
86 template <
typename StreamUnderlay>
90 #if BOOST_VERSION < 108600 91 char* buffer =
reinterpret_cast<char*
>(uuid.data);
93 char* buffer =
reinterpret_cast<char*
>(uuid.data());
95 s.
read(buffer, UUID::static_size());
107 std::stringstream ss;
116 std::stringstream ss(str);
124 MIRA_JSON_TRAIT(std::string,
UUID)
133 inline UUID reverse_cast<
UUID>(
const std::string& value)
std::string toString< UUID >(const UUID &value, int precision)
specialization for toString
Definition: UUID.h:105
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
By default, IsCheapToCopy<T>::value evaluates to true for fundamental types T, false for all other ty...
Definition: IsCheapToCopy.h:63
Type trait to define if a class is cheap to copy.
std::string cast< UUID >(const UUID &value)
Definition: UUID.h:127
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:114
boost::uuids::uuid UUID
Shorter name for boost uuid.
Definition: UUID.h:69