![]() |
Safir SDK Core
|
Utility functions for users of the DOB type system. More...
Functions | |
DOTS_CPP_API const std::string | ToUtf8 (const std::wstring &wstr) |
Convert a std::wstring to UTF8-encoded std::string. | |
DOTS_CPP_API const std::wstring | ToWstring (const std::string &str) |
Convert a UTF8-encoded std::string to std::wstring. | |
DOTS_CPP_API void | MergeChanges (ObjectPtr into, const ObjectConstPtr &from) |
Merge the changed members (recursively) from one object into another. | |
DOTS_CPP_API const std::string | BinaryToBase64 (char const *const binarySource, int sourceSize) |
Converts binary data to Base64. | |
DOTS_CPP_API const std::string | BinaryToBase64 (const Dob::Typesystem::Binary &bin) |
Converts binary data to Base64. | |
DOTS_CPP_API void | Base64ToBinary (const std::string &base64Str, Dob::Typesystem::Binary &binary) |
Converts data in Base64 format into binary data format. | |
Utility functions for users of the DOB type system.
DOTS_CPP_API void Safir::Dob::Typesystem::Utilities::Base64ToBinary | ( | const std::string & | base64Str, |
Dob::Typesystem::Binary & | binary ) |
Converts data in Base64 format into binary data format.
Will convert data from Base64 format to binary format.
base64Str | [in] - Base64 data to convert. |
binary | [out] - binary serialization that will contain the result. |
DOTS_CPP_API const std::string Safir::Dob::Typesystem::Utilities::BinaryToBase64 | ( | char const *const | binarySource, |
int | sourceSize ) |
Converts binary data to Base64.
Will convert the binarySource to Base64 format.
binarySource | [in] - pointer to the binary data to be converted. |
sourceSize | [in] - number of bytes to convert. |
DOTS_CPP_API const std::string Safir::Dob::Typesystem::Utilities::BinaryToBase64 | ( | const Dob::Typesystem::Binary & | bin | ) |
Converts binary data to Base64.
Will convert the binarySource to Base64 format.
bin | [in] - binary data to convert. |
DOTS_CPP_API void Safir::Dob::Typesystem::Utilities::MergeChanges | ( | ObjectPtr | into, |
const ObjectConstPtr & | from ) |
Merge the changed members (recursively) from one object into another.
This function will recurse through the members of the "from" object and take all the members that have a change flag set and copy them into the "into" object.
DOTS_CPP_API const std::string Safir::Dob::Typesystem::Utilities::ToUtf8 | ( | const std::wstring & | wstr | ) |
Convert a std::wstring to UTF8-encoded std::string.
wstr | [in] - The wstring to convert. |
Referenced by Safir::Dob::Typesystem::ChannelId::Utf8String(), Safir::Dob::Typesystem::HandlerId::Utf8String(), Safir::Dob::Typesystem::InstanceId::Utf8String(), Safir::Dob::Typesystem::StringContainer::Utf8String(), Safir::Dob::Typesystem::ChannelId::Utf8StringLength(), Safir::Dob::Typesystem::HandlerId::Utf8StringLength(), Safir::Dob::Typesystem::InstanceId::Utf8StringLength(), and Safir::Dob::Typesystem::StringContainer::Utf8StringLength().
DOTS_CPP_API const std::wstring Safir::Dob::Typesystem::Utilities::ToWstring | ( | const std::string & | str | ) |
Convert a UTF8-encoded std::string to std::wstring.
str | [in] - The string to convert. |