LibreOffice Module connectivity (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
connectivity::ado::OLEVariant Class Reference

#include <Aolevariant.hxx>

Inheritance diagram for connectivity::ado::OLEVariant:
[legend]
Collaboration diagram for connectivity::ado::OLEVariant:
[legend]

Public Member Functions

 OLEVariant ()
 
 OLEVariant (const VARIANT &varSrc)
 
 OLEVariant (const OLEVariant &varSrc)
 
 OLEVariant (bool x)
 
 OLEVariant (sal_Bool)=delete
 
 OLEVariant (sal_Int8 n)
 
 OLEVariant (sal_Int16 n)
 
 OLEVariant (sal_Int32 n)
 
 OLEVariant (sal_Int64 x)
 
 OLEVariant (std::u16string_view us)
 
 OLEVariant (const OUString &us)
 
 ~OLEVariant ()
 
 OLEVariant (const css::util::Date &x)
 
 OLEVariant (const css::util::Time &x)
 
 OLEVariant (const css::util::DateTime &x)
 
 OLEVariant (float x)
 
 OLEVariant (const double &x)
 
 OLEVariant (IDispatch *pDispInterface)
 
 OLEVariant (const css::uno::Sequence< sal_Int8 > &x)
 
OLEVariantoperator= (const OLEVariant &varSrc)
 
OLEVariantoperator= (const tagVARIANT &varSrc)
 
OLEVariantoperator= (const VARIANT *pSrc)
 
void setByte (sal_uInt8 n)
 
void setInt16 (sal_Int16 n)
 
void setInt32 (sal_Int32 n)
 
void setFloat (float f)
 
void setDouble (double d)
 
void setDate (DATE d)
 
void setChar (unsigned char a)
 
void setCurrency (double aCur)
 
void setBool (bool b)
 
void setString (std::u16string_view us)
 
void setNoArg ()
 
void setIDispatch (IDispatch *pDispInterface)
 
void setNull ()
 
void setEmpty ()
 
void setUI1SAFEARRAYPtr (SAFEARRAY *pSafeAr)
 
void setArray (SAFEARRAY *pSafeArray, VARTYPE vtType)
 
bool isNull () const
 
bool isEmpty () const
 
VARTYPE getType () const
 
void ChangeType (VARTYPE vartype, const OLEVariant *pSrc)
 
OUString getString () const
 
bool getBool () const
 
IUnknown * getIUnknown () const
 
IDispatch * getIDispatch () const
 
sal_uInt8 getByte () const
 
sal_Int16 getInt16 () const
 
sal_Int8 getInt8 () const
 
sal_Int32 getInt32 () const
 
sal_uInt32 getUInt32 () const
 
float getFloat () const
 
double getDouble () const
 
double getDateAsDouble () const
 
CY getCurrency () const
 
css::util::Date getDate () const
 
css::util::Time getTime () const
 
css::util::DateTime getDateTime () const
 
css::uno::Sequence< sal_Int8getByteSequence () const
 
SAFEARRAY * getUI1SAFEARRAYPtr () const
 
css::uno::Any makeAny () const
 

Static Public Member Functions

static VARIANT_BOOL VariantBool (bool bEinBoolean)
 

Private Member Functions

void CHS ()
 
void set (double n)
 

Detailed Description

Definition at line 36 of file Aolevariant.hxx.

Constructor & Destructor Documentation

◆ OLEVariant() [1/18]

OLEVariant::OLEVariant ( )

Definition at line 40 of file Aolevariant.cxx.

◆ OLEVariant() [2/18]

OLEVariant::OLEVariant ( const VARIANT &  varSrc)

Definition at line 44 of file Aolevariant.cxx.

◆ OLEVariant() [3/18]

OLEVariant::OLEVariant ( const OLEVariant varSrc)

Definition at line 50 of file Aolevariant.cxx.

◆ OLEVariant() [4/18]

OLEVariant::OLEVariant ( bool  x)

Definition at line 57 of file Aolevariant.cxx.

References VT_BOOL, and x.

◆ OLEVariant() [5/18]

connectivity::ado::OLEVariant::OLEVariant ( sal_Bool  )
delete

◆ OLEVariant() [6/18]

OLEVariant::OLEVariant ( sal_Int8  n)

Definition at line 58 of file Aolevariant.cxx.

References n, and VT_I1.

◆ OLEVariant() [7/18]

OLEVariant::OLEVariant ( sal_Int16  n)

Definition at line 59 of file Aolevariant.cxx.

References n, and VT_I2.

◆ OLEVariant() [8/18]

OLEVariant::OLEVariant ( sal_Int32  n)

Definition at line 60 of file Aolevariant.cxx.

References n, and VT_I4.

◆ OLEVariant() [9/18]

OLEVariant::OLEVariant ( sal_Int64  x)

Definition at line 61 of file Aolevariant.cxx.

References LONG, VT_I4, and x.

◆ OLEVariant() [10/18]

OLEVariant::OLEVariant ( std::u16string_view  us)

Definition at line 63 of file Aolevariant.cxx.

References VT_BSTR.

◆ OLEVariant() [11/18]

connectivity::ado::OLEVariant::OLEVariant ( const OUString &  us)
inline

Definition at line 50 of file Aolevariant.hxx.

◆ ~OLEVariant()

OLEVariant::~OLEVariant ( )

Definition at line 69 of file Aolevariant.cxx.

◆ OLEVariant() [12/18]

OLEVariant::OLEVariant ( const css::util::Date &  x)

Definition at line 75 of file Aolevariant.cxx.

References toDouble(), VT_DATE, and x.

◆ OLEVariant() [13/18]

OLEVariant::OLEVariant ( const css::util::Time &  x)

Definition at line 81 of file Aolevariant.cxx.

References toDouble(), VT_DATE, and x.

◆ OLEVariant() [14/18]

OLEVariant::OLEVariant ( const css::util::DateTime &  x)

Definition at line 87 of file Aolevariant.cxx.

References toDouble(), VT_DATE, and x.

◆ OLEVariant() [15/18]

OLEVariant::OLEVariant ( float  x)

Definition at line 93 of file Aolevariant.cxx.

References VT_R4, and x.

◆ OLEVariant() [16/18]

OLEVariant::OLEVariant ( const double &  x)

Definition at line 99 of file Aolevariant.cxx.

References VT_R8, and x.

◆ OLEVariant() [17/18]

OLEVariant::OLEVariant ( IDispatch *  pDispInterface)

Definition at line 107 of file Aolevariant.cxx.

References setIDispatch().

◆ OLEVariant() [18/18]

OLEVariant::OLEVariant ( const css::uno::Sequence< sal_Int8 > &  x)

Definition at line 113 of file Aolevariant.cxx.

References i, VT_ARRAY, VT_UI1, and x.

Member Function Documentation

◆ ChangeType()

void OLEVariant::ChangeType ( VARTYPE  vartype,
const OLEVariant pSrc 
)

◆ CHS()

void OLEVariant::CHS ( )
private

Definition at line 297 of file Aolevariant.cxx.

Referenced by set().

◆ getBool()

bool OLEVariant::getBool ( ) const

◆ getByte()

sal_uInt8 OLEVariant::getByte ( ) const

Definition at line 457 of file Aolevariant.cxx.

References ChangeType(), isNull(), and VT_UI1.

◆ getByteSequence()

css::uno::Sequence< sal_Int8 > OLEVariant::getByteSequence ( ) const

◆ getCurrency()

CY OLEVariant::getCurrency ( ) const

Definition at line 572 of file Aolevariant.cxx.

References ChangeType(), isNull(), and VT_CY.

Referenced by connectivity::ado::OCallableStatement::getLong().

◆ getDate()

css::util::Date OLEVariant::getDate ( ) const

◆ getDateAsDouble()

double OLEVariant::getDateAsDouble ( ) const

Definition at line 558 of file Aolevariant.cxx.

References ChangeType(), isNull(), and VT_DATE.

Referenced by getDate(), getDateTime(), and getTime().

◆ getDateTime()

css::util::DateTime OLEVariant::getDateTime ( ) const

◆ getDouble()

double OLEVariant::getDouble ( ) const

◆ getFloat()

float OLEVariant::getFloat ( ) const

◆ getIDispatch()

IDispatch * OLEVariant::getIDispatch ( ) const

Definition at line 439 of file Aolevariant.cxx.

References ChangeType(), and isNull().

Referenced by connectivity::ado::OAdoView::getFastPropertyValue().

◆ getInt16()

sal_Int16 OLEVariant::getInt16 ( ) const

◆ getInt32()

sal_Int32 OLEVariant::getInt32 ( ) const

◆ getInt8()

sal_Int8 OLEVariant::getInt8 ( ) const

◆ getIUnknown()

IUnknown * OLEVariant::getIUnknown ( ) const

Definition at line 422 of file Aolevariant.cxx.

References ChangeType(), and isNull().

◆ getString()

OUString OLEVariant::getString ( ) const

◆ getTime()

css::util::Time OLEVariant::getTime ( ) const

◆ getType()

VARTYPE OLEVariant::getType ( ) const

◆ getUI1SAFEARRAYPtr()

SAFEARRAY * OLEVariant::getUI1SAFEARRAYPtr ( ) const

Definition at line 590 of file Aolevariant.cxx.

References ChangeType(), isNull(), VT_ARRAY, and VT_UI1.

Referenced by getByteSequence().

◆ getUInt32()

sal_uInt32 OLEVariant::getUInt32 ( ) const

Definition at line 515 of file Aolevariant.cxx.

References ChangeType(), isNull(), and VT_UI4.

◆ isEmpty()

bool OLEVariant::isEmpty ( ) const

◆ isNull()

bool OLEVariant::isNull ( ) const

◆ makeAny()

css::uno::Any OLEVariant::makeAny ( ) const

◆ operator=() [1/3]

OLEVariant & OLEVariant::operator= ( const OLEVariant varSrc)

Definition at line 131 of file Aolevariant.cxx.

◆ operator=() [2/3]

OLEVariant & OLEVariant::operator= ( const tagVARIANT &  varSrc)

Definition at line 139 of file Aolevariant.cxx.

◆ operator=() [3/3]

OLEVariant & OLEVariant::operator= ( const VARIANT *  pSrc)

Definition at line 149 of file Aolevariant.cxx.

◆ set()

void OLEVariant::set ( double  n)
private

Definition at line 306 of file Aolevariant.cxx.

References CHS(), and n.

Referenced by setCurrency().

◆ setArray()

void OLEVariant::setArray ( SAFEARRAY *  pSafeArray,
VARTYPE  vtType 
)

◆ setBool()

void OLEVariant::setBool ( bool  b)

Definition at line 211 of file Aolevariant.cxx.

References VT_BOOL.

◆ setByte()

void OLEVariant::setByte ( sal_uInt8  n)

Definition at line 157 of file Aolevariant.cxx.

References n, and VT_UI1.

◆ setChar()

void OLEVariant::setChar ( unsigned char  a)

Definition at line 197 of file Aolevariant.cxx.

References a, and VT_UI1.

◆ setCurrency()

void OLEVariant::setCurrency ( double  aCur)

Definition at line 204 of file Aolevariant.cxx.

References set(), and VT_CY.

◆ setDate()

void OLEVariant::setDate ( DATE  d)

Definition at line 191 of file Aolevariant.cxx.

References d, and VT_DATE.

◆ setDouble()

void OLEVariant::setDouble ( double  d)

Definition at line 184 of file Aolevariant.cxx.

References d, and VT_R8.

◆ setEmpty()

void OLEVariant::setEmpty ( )

◆ setFloat()

void OLEVariant::setFloat ( float  f)

Definition at line 178 of file Aolevariant.cxx.

References VT_R4.

◆ setIDispatch()

void OLEVariant::setIDispatch ( IDispatch *  pDispInterface)

◆ setInt16()

void OLEVariant::setInt16 ( sal_Int16  n)

Definition at line 164 of file Aolevariant.cxx.

References n, and VT_I2.

◆ setInt32()

void OLEVariant::setInt32 ( sal_Int32  n)

Definition at line 171 of file Aolevariant.cxx.

References n, and VT_I4.

◆ setNoArg()

void OLEVariant::setNoArg ( )

Definition at line 225 of file Aolevariant.cxx.

References VT_ERROR.

Referenced by connectivity::ado::ODatabaseMetaDataResultSet::absolute(), connectivity::ado::OResultSet::absolute(), connectivity::ado::OKeys::appendObject(), connectivity::ado::OPreparedStatement::executeQuery(), connectivity::ado::OStatement_Base::executeQuery(), connectivity::ado::ODatabaseMetaData::fillLiterals(), connectivity::ado::ODatabaseMetaData::getCatalogs(), connectivity::ado::WpADOConnection::getColumnPrivileges(), connectivity::ado::WpADOConnection::getColumns(), connectivity::ado::WpADOConnection::getCrossReference(), connectivity::ado::WpADOConnection::getExportedKeys(), connectivity::ado::WpADOConnection::getImportedKeys(), connectivity::ado::WpADOConnection::getIndexInfo(), connectivity::ado::WpADOCatalog::GetObjectOwner(), connectivity::ado::WpADOGroup::GetPermissions(), connectivity::ado::WpADOUser::GetPermissions(), connectivity::ado::WpADOConnection::getPrimaryKeys(), connectivity::ado::WpADOConnection::getProcedureColumns(), connectivity::ado::WpADOConnection::getProcedures(), connectivity::ado::ODatabaseMetaData::getSchemas(), connectivity::ado::ODatabaseMetaData::getSQLKeywords(), connectivity::ado::WpADOConnection::getTablePrivileges(), connectivity::ado::WpADOConnection::getTables(), connectivity::ado::WpADOConnection::getTypeInfo(), connectivity::ado::OResultSet::insertRow(), connectivity::ado::OStatement_Base::OStatement_Base(), connectivity::ado::ODatabaseMetaDataResultSet::relative(), connectivity::ado::OResultSet::relative(), connectivity::ado::WpADOGroup::SetPermissions(), connectivity::ado::WpADOUser::SetPermissions(), and connectivity::ado::OResultSet::updateRow().

◆ setNull()

void OLEVariant::setNull ( )

Definition at line 233 of file Aolevariant.cxx.

References VT_NULL.

Referenced by connectivity::ado::OPreparedStatement::setNull().

◆ setString()

void OLEVariant::setString ( std::u16string_view  us)

◆ setUI1SAFEARRAYPtr()

void OLEVariant::setUI1SAFEARRAYPtr ( SAFEARRAY *  pSafeAr)

Definition at line 246 of file Aolevariant.cxx.

References VT_ARRAY, and VT_UI1.

◆ VariantBool()

VARIANT_BOOL OLEVariant::VariantBool ( bool  bEinBoolean)
static

Definition at line 292 of file Aolevariant.cxx.


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