VSM C++ SDK
Vehicle Specific Modules SDK
ugcs::vsm::Windows_wstring Class Reference

Helper class for constructing Windows API compatible wchar strings from UTF-8 strings. More...

#include <windows_wstring.h>

Classes

struct  Conversion_failure_dummy_struct
 Indicate a problem with data encoding/decoding/conversion. More...
 

Public Types

typedef ugcs::vsm::Param_exception< Conversion_failure_dummy_struct,> Conversion_failure
 

Public Member Functions

 Windows_wstring (const std::string &)
 Construct from UTF-8 string. More...
 
LPCWSTR Get () const
 Get Windows wide char string. More...
 
 operator LPCWSTR () const
 Type cast operator for convenience. More...
 

Static Public Attributes

static constexpr size_t MAX_WLEN = 8 * 1024
 Maximum size of Windows wide char string. More...
 

Detailed Description

Helper class for constructing Windows API compatible wchar strings from UTF-8 strings.

Constructor & Destructor Documentation

ugcs::vsm::Windows_wstring::Windows_wstring ( const std::string &  )

Construct from UTF-8 string.

Exceptions
Conversion_failurein case of conversion error.

Member Function Documentation

LPCWSTR ugcs::vsm::Windows_wstring::Get ( ) const

Get Windows wide char string.

ugcs::vsm::Windows_wstring::operator LPCWSTR ( ) const

Type cast operator for convenience.

Member Data Documentation

constexpr size_t ugcs::vsm::Windows_wstring::MAX_WLEN = 8 * 1024
static

Maximum size of Windows wide char string.


The documentation for this class was generated from the following file: