25 #ifndef __DOTS_UTILITIES_H__
26 #define __DOTS_UTILITIES_H__
30 #include <boost/shared_ptr.hpp>
42 typedef boost::shared_ptr<Object>
ObjectPtr;
55 DOTS_API
const std::string
ToUtf8(
const std::wstring & wstr);
63 DOTS_API
const std::wstring
ToWstring(
const std::string & str);
86 DOTS_API
const std::string
BinaryToBase64(
char const *
const binarySource,
int sourceSize);
DOTS_API void MergeChanges(ObjectPtr into, const ObjectPtr from)
Merge the changed members (recursively) from one object into another.
DOTS_API const std::wstring ToWstring(const std::string &str)
Convert a UTF8-encoded std::string to std::wstring.
boost::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition: Object.h:41
DOTS_API const std::string ToUtf8(const std::wstring &wstr)
Convert a std::wstring to UTF8-encoded std::string.
DOTS_API void Base64ToBinary(const std::string &base64, Dob::Typesystem::Binary &binary)
Converts data in Base64 format into binary data format.
DOTS_API const std::string BinaryToBase64(char const *const binarySource, int sourceSize)
Converts binary data to Base64.
std::vector< char > Binary
A type to contain binary data.
Definition: Dob/Typesystem/Defs.h:296