API Guides > ConceptRT 3.x
Variant Class Reference

Variant. More...

Detailed Description

Public Member Methods

 Variant ()
 Default constructor. More...
 
 Variant (PCChar8 value)
 Default constructor. More...
 
 operator bool () const
 bool casting operator. More...
 
 operator Int16 () const
 Int16 casting operator. More...
 
 operator int () const
 int casting operator. More...
 
 operator Int8 () const
 Int8 casting operator. More...
 
 operator Int32 () const
 Int32 casting operator. More...
 
 operator Int64 () const
 Int64 casting operator. More...
 
 operator PCChar8 () const
 PCChar8 casting operator. More...
 
 operator String () const
 String casting operator. More...
 
 operator Float32 () const
 Float32 casting operator. More...
 
 operator Float64 () const
 Float64 casting operator. More...
 
bool IsNull () const
 Query if this object has no content. More...
 

Constructor & Destructor Documentation

Variant ( )
inline

Default constructor.

Variant ( PCChar8  value)
inline

Default constructor.

Parameters
valueThe value.

Methods Documentation

bool IsNull ( ) const
inline

Query if this object has no content.

Returns
true if no content.
operator bool ( ) const
inline

bool casting operator.

Returns
Return the conversion of the Variant as a Boolean.
RT Exceptions:
RT_ERROR_TRY_TO_ACCESS_UNEXISTANT_CONTENT
operator Float32 ( ) const
inline

Float32 casting operator.

Returns
Return the conversion of the Variant as a Float32.
RT Exceptions:
RT_ERROR_TRY_TO_ACCESS_UNEXISTANT_CONTENT
operator Float64 ( ) const
inline

Float64 casting operator.

Returns
Return the conversion of the Variant as a Float64.
RT Exceptions:
RT_ERROR_TRY_TO_ACCESS_UNEXISTANT_CONTENT
operator int ( ) const
inline

int casting operator.

Returns
Return the conversion of the Variant as a int.
RT Exceptions:
RT_ERROR_TRY_TO_ACCESS_UNEXISTANT_CONTENT
operator Int16 ( ) const
inline

Int16 casting operator.

Returns
Return the conversion of the Variant as a Int16.
RT Exceptions:
RT_ERROR_TRY_TO_ACCESS_UNEXISTANT_CONTENT
operator Int32 ( ) const
inline

Int32 casting operator.

Returns
Return the conversion of the Variant as a Int32.
RT Exceptions:
RT_ERROR_TRY_TO_ACCESS_UNEXISTANT_CONTENT
operator Int64 ( ) const
inline

Int64 casting operator.

Returns
Return the conversion of the Variant as a Int64.
RT Exceptions:
RT_ERROR_TRY_TO_ACCESS_UNEXISTANT_CONTENT
operator Int8 ( ) const
inline

Int8 casting operator.

Returns
Return the conversion of the Variant as a Int8.
RT Exceptions:
RT_ERROR_TRY_TO_ACCESS_UNEXISTANT_CONTENT
operator PCChar8 ( ) const
inline

PCChar8 casting operator.

Returns
Return the conversion of the Variant as a PCChar8. Return 0 when the Variant is null.
operator String ( ) const
inline

String casting operator.

Returns
Return the conversion of the Variant as a String. Return CONCEPTRT_NULL_STRING when the Variant is null.