Proud::CVariant Class Reference

Public Member Functions

 CVariant (const _variant_t &src)
 
 CVariant (VARENUM vartype)
 
 CVariant (char a)
 
 CVariant (short a)
 
 CVariant (int a)
 
 CVariant (long a)
 
 CVariant (int64_t a)
 
 CVariant (unsigned char a)
 
 CVariant (unsigned short a)
 
 CVariant (unsigned int a)
 
 CVariant (unsigned long a)
 
 CVariant (uint64_t a)
 
 CVariant (float a)
 
 CVariant (double a)
 
 CVariant (const wchar_t *a)
 
 CVariant (const char *a)
 
 CVariant (const String &a)
 
 CVariant (UUID a)
 
 CVariant (Guid a)
 
 CVariant (bool a)
 
 CVariant (const COleDateTime &a)
 
 CVariant (const ByteArray &a)
 
 CVariant (const ByteArrayPtr a)
 
 operator char () const
 
 operator short () const
 
 operator int () const
 
 operator long () const
 
 operator unsigned char () const
 
 operator unsigned short () const
 
 operator unsigned int () const
 
 operator unsigned long () const
 
 operator float () const
 
 operator double () const
 
 operator String () const
 
 operator UUID () const
 
 operator Guid () const
 
 operator bool () const
 
 operator COleDateTime () const
 
 operator int64_t () const
 
 operator uint64_t () const
 
 operator ByteArrayPtr () const
 
bool IsNull () const
 
PROUDSRV_API void ToByteArray (ByteArray &output) const
 
PROUDSRV_API ByteArrayPtr ToByteArrayPtr () const
 
PROUDSRV_API void FromByteArray (const ByteArray &input)
 
PROUDSRV_API void FromByteArray (const ByteArrayPtr input)
 
PROUDSRV_API void ThrowIfNull () const
 

Public Attributes

_variant_t m_val
 

Detailed Description

variant. This module works similar to _variant_t, but additionally handles UUID, int64 and etc.

  • This object has an UUID after converting it to braket string.
  • This object has a custom converter of int64 instead of VariantChangeType(). (Because VariantChangeType에서 64bit integer is already supported in Windows XP.)

Member Function Documentation

PROUDSRV_API void Proud::CVariant::FromByteArray ( const ByteArray input)

This method inputs data in byte data block.

PROUDSRV_API void Proud::CVariant::FromByteArray ( const ByteArrayPtr  input)

This method inputs data in byte data block.

bool Proud::CVariant::IsNull ( ) const
inline

This method checks whether or not a value is included.

Proud::CVariant::operator bool ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator char ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator COleDateTime ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator double ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator float ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator Guid ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator int ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator int64_t ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator long ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator short ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator String ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator uint64_t ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator unsigned char ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator unsigned int ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator unsigned long ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator unsigned short ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

Proud::CVariant::operator UUID ( ) const
inline

This is a returned value operator, which throws an exception if it contains null values. So please confirm the value is null or not by IsNull() first.

PROUDSRV_API void Proud::CVariant::ToByteArray ( ByteArray output) const

This method returns data in byte data block.

PROUDSRV_API ByteArrayPtr Proud::CVariant::ToByteArrayPtr ( ) const

This method returns data in byte data block.