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

This class wraps the SDKArray type. More...

#include <sdk_array_handler.h>

Public Member Functions

 SDKArrayHandler () noexcept
 Creates a new SDKArray instance.
 
 SDKArrayHandler (const SDKArray &instance) noexcept
 Creates a copy of SDKArray instance.
 
 operator SDKArray & () noexcept
 Returns reference to the internal array.
 
 operator const SDKArray & () const noexcept
 Returns reference to the internal array.
 
SDKAnyType GetType () const noexcept
 Returns the type of the element.
 
SDKUInt32 GetElementSize () const noexcept
 Returns the size of the element.
 
SDKUInt64 GetElementsCount () const noexcept
 Returns the count of elements.
 
SDKUInt8 * GetBuffer () noexcept
 Returns the buffer.
 
const SDKUInt8 * GetBuffer () const noexcept
 Returns the buffer.
 
SDKUInt64 GetBufferSize () const noexcept
 Returns the buffer size.
 
SDKArray & GetReference () noexcept
 Returns the reference.
 
const SDKArray & GetReference () const noexcept
 Returns the reference.
 
SDKArray & Get () noexcept
 Returns reference to the internal array.
 
const SDKArray & Get () const noexcept
 Returns reference to the internal array.
 

Static Public Member Functions

template<typename T >
static bool FromStdVector (const std::vector< T > &v, SDKAnyType element_type, SDKArray &arr) noexcept
 Creates SDKArray from std::vector.
 
template<typename T >
static bool FromStdSet (const std::set< T > &s, SDKAnyType element_type, SDKArray &arr) noexcept
 Creates SDKArray from std::set.
 
template<typename T >
static bool ToStdVector (const SDKArray *arr, SDKAnyType element_type, std::vector< T > &v) noexcept
 Creates std::vector from the SDKArray.
 
template<typename T >
static bool ToStdSet (const SDKArray *arr, SDKAnyType element_type, std::set< T > &out) noexcept
 Creates std::set from the SDKArray.
 
static bool FromStdString (const std::string &str, SDKArray &arr) noexcept
 Creates SDKArray from std::string.
 
static bool ToStdString (const SDKArray *arr, std::string &str) noexcept
 Copy SDKArray to std::string.
 

Detailed Description

This class wraps the SDKArray type.


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