NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
SDKStringHandler Class Reference

This class wraps the SDKString type. More...

#include <sdk_string_handler.h>

Inherits SDKString.

Public Member Functions

 SDKStringHandler ()
 Creates handler with empty string.
 
 SDKStringHandler (const char *ascii, SDKUInt32 size=0)
 Creates handler from ASCII string.
 
 SDKStringHandler (const wchar_t *wide, SDKUInt32 size=0)
 Creates handler from wide string.
 
 SDKStringHandler (const std::wstring &wide)
 Creates handler from the std::wstring string.
 
 SDKStringHandler (const std::string &ascii)
 Creates handler from the std::wstring string.
 
 SDKStringHandler (const SDKString &instance)
 Creates handler on copy of the specified string.
 
 SDKStringHandler (SDKString &instance, bool duplicate)
 Creates handler on the specified string.
 
 SDKStringHandler (const SDKStringHandler &from)
 Copy constructor.
 
 ~SDKStringHandler ()
 Destroys internal sdk string.
 
SDKStringHandler & operator= (const SDKStringHandler &from)
 Assign operator.
 
SDKStringHandler & operator= (const SDKString &from)
 Assign operator.
 
void operator= (const char *ascii)
 Assign operator.
 
void operator= (const wchar_t *wide)
 Assign operator.
 
void operator= (const std::string &ascii)
 Assign operator.
 
void operator= (const std::wstring &wide)
 Assign operator.
 
bool operator== (const char *ascii) const
 Comparison operator.
 
bool operator== (const wchar_t *wide) const
 Comparison operator.
 
SDKString * operator& ()
 Returns address of the internal sdk string.
 
SDKStringHandler & Attach (SDKString &instance)
 Returns reference to the internal sdk string. More...
 
SDKString Detach ()
 Detaches existing value.
 
SDKString Copy ()
 Assign operator.
 
SDKAny DetachAsAny ()
 Detaches existing value placing it inside any.
 
void Clear ()
 Clears existing value.
 
std::wstring WString () const
 Returns SDKString as std::wstring.
 
std::string ASCIIString () const
 Returns SDKString as std::string.
 
SDKUInt64 GetLength () const
 String properties.
 

Detailed Description

This class wraps the SDKString type.

Member Function Documentation

◆ Attach()

SDKStringHandler& Attach ( SDKString &  instance)
inline

Returns reference to the internal sdk string.

Returns reference to the internal sdk string.

Attaches existing value taking over the ownership.


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