LibreOffice Module connectivity (master) 1
|
#include <Aolevariant.hxx>
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) | |
OLEVariant & | operator= (const OLEVariant &varSrc) |
OLEVariant & | operator= (const tagVARIANT &varSrc) |
OLEVariant & | operator= (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_Int8 > | getByteSequence () 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) |
Definition at line 36 of file Aolevariant.hxx.
OLEVariant::OLEVariant | ( | ) |
Definition at line 40 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | const VARIANT & | varSrc | ) |
Definition at line 44 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | const OLEVariant & | varSrc | ) |
Definition at line 50 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | bool | x | ) |
Definition at line 57 of file Aolevariant.cxx.
|
delete |
OLEVariant::OLEVariant | ( | sal_Int8 | n | ) |
Definition at line 58 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | sal_Int16 | n | ) |
Definition at line 59 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | sal_Int32 | n | ) |
Definition at line 60 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | sal_Int64 | x | ) |
Definition at line 61 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | std::u16string_view | us | ) |
Definition at line 63 of file Aolevariant.cxx.
References VT_BSTR.
|
inline |
Definition at line 50 of file Aolevariant.hxx.
OLEVariant::~OLEVariant | ( | ) |
Definition at line 69 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | const css::util::Date & | x | ) |
Definition at line 75 of file Aolevariant.cxx.
References toDouble(), VT_DATE, and x.
OLEVariant::OLEVariant | ( | const css::util::Time & | x | ) |
Definition at line 81 of file Aolevariant.cxx.
References toDouble(), VT_DATE, and x.
OLEVariant::OLEVariant | ( | const css::util::DateTime & | x | ) |
Definition at line 87 of file Aolevariant.cxx.
References toDouble(), VT_DATE, and x.
OLEVariant::OLEVariant | ( | float | x | ) |
Definition at line 93 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | const double & | x | ) |
Definition at line 99 of file Aolevariant.cxx.
OLEVariant::OLEVariant | ( | IDispatch * | pDispInterface | ) |
Definition at line 107 of file Aolevariant.cxx.
References setIDispatch().
OLEVariant::OLEVariant | ( | const css::uno::Sequence< sal_Int8 > & | x | ) |
void OLEVariant::ChangeType | ( | VARTYPE | vartype, |
const OLEVariant * | pSrc | ||
) |
Definition at line 336 of file Aolevariant.cxx.
References connectivity::SharedResources::getResourceString().
Referenced by getBool(), getByte(), getCurrency(), getDateAsDouble(), getDouble(), getFloat(), getIDispatch(), getInt16(), getInt32(), getInt8(), getIUnknown(), getString(), getUI1SAFEARRAYPtr(), and getUInt32().
|
private |
Definition at line 297 of file Aolevariant.cxx.
Referenced by set().
bool OLEVariant::getBool | ( | ) | const |
Definition at line 408 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_BOOL.
Referenced by connectivity::ado::OAdoColumn::fillPropertyValues(), connectivity::ado::OCallableStatement::getBoolean(), connectivity::ado::ODatabaseMetaDataResultSet::getBoolean(), connectivity::ado::OResultSet::getBoolean(), connectivity::ado::OResultSet::hasOrderedBookmarks(), connectivity::ado::OResultSetMetaData::isAutoIncrement(), and connectivity::ado::OResultSetMetaData::isCaseSensitive().
sal_uInt8 OLEVariant::getByte | ( | ) | const |
Definition at line 457 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_UI1.
css::uno::Sequence< sal_Int8 > OLEVariant::getByteSequence | ( | ) | const |
Definition at line 367 of file Aolevariant.cxx.
References getUI1SAFEARRAYPtr(), isNull(), LONG, nCount, pData, and VT_BSTR.
Referenced by connectivity::ado::ODatabaseMetaDataResultSet::getBinaryStream(), connectivity::ado::OResultSet::getBinaryStream(), connectivity::ado::OCallableStatement::getBytes(), connectivity::ado::ODatabaseMetaDataResultSet::getBytes(), and connectivity::ado::OResultSet::getBytes().
CY OLEVariant::getCurrency | ( | ) | const |
Definition at line 572 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_CY.
Referenced by connectivity::ado::OCallableStatement::getLong().
css::util::Date OLEVariant::getDate | ( | ) | const |
Definition at line 279 of file Aolevariant.cxx.
References getDateAsDouble(), isNull(), and dbtools::DBTypeConversion::toDate().
Referenced by connectivity::ado::OCallableStatement::getDate(), connectivity::ado::ODatabaseMetaDataResultSet::getDate(), connectivity::ado::OResultSet::getDate(), and makeAny().
double OLEVariant::getDateAsDouble | ( | ) | const |
Definition at line 558 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_DATE.
Referenced by getDate(), getDateTime(), and getTime().
css::util::DateTime OLEVariant::getDateTime | ( | ) | const |
Definition at line 287 of file Aolevariant.cxx.
References getDateAsDouble(), isNull(), and dbtools::DBTypeConversion::toDateTime().
Referenced by connectivity::ado::OCallableStatement::getTimestamp(), connectivity::ado::ODatabaseMetaDataResultSet::getTimestamp(), and connectivity::ado::OResultSet::getTimestamp().
double OLEVariant::getDouble | ( | ) | const |
Definition at line 544 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_R8.
Referenced by connectivity::ado::OCallableStatement::getDouble(), connectivity::ado::ODatabaseMetaDataResultSet::getDouble(), and connectivity::ado::OResultSet::getDouble().
float OLEVariant::getFloat | ( | ) | const |
Definition at line 530 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_R4.
Referenced by connectivity::ado::OCallableStatement::getFloat(), connectivity::ado::ODatabaseMetaDataResultSet::getFloat(), and connectivity::ado::OResultSet::getFloat().
IDispatch * OLEVariant::getIDispatch | ( | ) | const |
Definition at line 439 of file Aolevariant.cxx.
References ChangeType(), and isNull().
Referenced by connectivity::ado::OAdoView::getFastPropertyValue().
sal_Int16 OLEVariant::getInt16 | ( | ) | const |
Definition at line 471 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_I2.
Referenced by connectivity::ado::ODatabaseMetaDataResultSet::getBoolean(), connectivity::ado::OCallableStatement::getShort(), connectivity::ado::ODatabaseMetaDataResultSet::getShort(), and connectivity::ado::OResultSet::getShort().
sal_Int32 OLEVariant::getInt32 | ( | ) | const |
Definition at line 500 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_I4.
Referenced by connectivity::ado::OPreparedStatement::executeUpdate(), connectivity::ado::OStatement_Base::executeUpdate(), connectivity::ado::ODatabaseMetaDataResultSet::getByte(), connectivity::ado::OCallableStatement::getInt(), connectivity::ado::ODatabaseMetaDataResultSet::getInt(), connectivity::ado::OResultSet::getInt(), connectivity::ado::OStatement_Base::getRowCount(), connectivity::ado::ODatabaseMetaDataResultSet::getShort(), and connectivity::ado::ODatabaseMetaDataResultSet::getString().
sal_Int8 OLEVariant::getInt8 | ( | ) | const |
Definition at line 485 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_I1.
Referenced by connectivity::ado::OCallableStatement::getByte(), connectivity::ado::ODatabaseMetaDataResultSet::getByte(), and connectivity::ado::OResultSet::getByte().
IUnknown * OLEVariant::getIUnknown | ( | ) | const |
Definition at line 422 of file Aolevariant.cxx.
References ChangeType(), and isNull().
OUString OLEVariant::getString | ( | ) | const |
Definition at line 320 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_BSTR.
Referenced by connectivity::ado::OAdoColumn::fillPropertyValues(), connectivity::ado::OAdoTable::fillPropertyValues(), connectivity::ado::ODatabaseMetaDataResultSet::getByte(), connectivity::ado::ODatabaseMetaDataResultSet::getInt(), connectivity::ado::ODatabaseMetaDataResultSet::getShort(), connectivity::ado::ODatabaseMetaData::getSQLKeywords(), connectivity::ado::OCallableStatement::getString(), connectivity::ado::ODatabaseMetaDataResultSet::getString(), connectivity::ado::OResultSet::getString(), and connectivity::ado::OResultSetMetaData::getTableName().
css::util::Time OLEVariant::getTime | ( | ) | const |
Definition at line 283 of file Aolevariant.cxx.
References getDateAsDouble(), isNull(), and dbtools::DBTypeConversion::toTime().
Referenced by connectivity::ado::OCallableStatement::getTime(), connectivity::ado::ODatabaseMetaDataResultSet::getTime(), and connectivity::ado::OResultSet::getTime().
VARTYPE OLEVariant::getType | ( | ) | const |
Definition at line 277 of file Aolevariant.cxx.
Referenced by connectivity::ado::OPreparedStatement::executeUpdate(), and connectivity::ado::OStatement_Base::executeUpdate().
SAFEARRAY * OLEVariant::getUI1SAFEARRAYPtr | ( | ) | const |
Definition at line 590 of file Aolevariant.cxx.
References ChangeType(), isNull(), VT_ARRAY, and VT_UI1.
Referenced by getByteSequence().
sal_uInt32 OLEVariant::getUInt32 | ( | ) | const |
Definition at line 515 of file Aolevariant.cxx.
References ChangeType(), isNull(), and VT_UI4.
bool OLEVariant::isEmpty | ( | ) | const |
Definition at line 275 of file Aolevariant.cxx.
References VT_EMPTY.
Referenced by connectivity::ado::OStatement_Base::executeUpdate(), connectivity::ado::OAdoView::getFastPropertyValue(), and connectivity::ado::OResultSet::hasOrderedBookmarks().
bool OLEVariant::isNull | ( | ) | const |
Definition at line 274 of file Aolevariant.cxx.
References VT_NULL.
Referenced by connectivity::ado::OStatement_Base::executeUpdate(), connectivity::ado::ODatabaseMetaDataResultSet::getBinaryStream(), connectivity::ado::OResultSet::getBinaryStream(), getBool(), getByte(), connectivity::ado::ODatabaseMetaDataResultSet::getByte(), getByteSequence(), getCurrency(), getDate(), getDateAsDouble(), getDateTime(), getDouble(), connectivity::ado::OAdoView::getFastPropertyValue(), getFloat(), getIDispatch(), connectivity::ado::ODatabaseMetaDataResultSet::getInt(), getInt16(), getInt32(), getInt8(), getIUnknown(), connectivity::ado::ODatabaseMetaDataResultSet::getShort(), getString(), connectivity::ado::ODatabaseMetaDataResultSet::getString(), getTime(), getUI1SAFEARRAYPtr(), getUInt32(), connectivity::ado::OResultSet::hasOrderedBookmarks(), connectivity::ado::OCallableStatement::wasNull(), connectivity::ado::ODatabaseMetaDataResultSet::wasNull(), and connectivity::ado::OResultSet::wasNull().
css::uno::Any OLEVariant::makeAny | ( | ) | const |
OLEVariant & OLEVariant::operator= | ( | const OLEVariant & | varSrc | ) |
Definition at line 131 of file Aolevariant.cxx.
OLEVariant & OLEVariant::operator= | ( | const tagVARIANT & | varSrc | ) |
Definition at line 139 of file Aolevariant.cxx.
OLEVariant & OLEVariant::operator= | ( | const VARIANT * | pSrc | ) |
Definition at line 149 of file Aolevariant.cxx.
|
private |
Definition at line 306 of file Aolevariant.cxx.
Referenced by setCurrency().
void OLEVariant::setArray | ( | SAFEARRAY * | pSafeArray, |
VARTYPE | vtType | ||
) |
Definition at line 253 of file Aolevariant.cxx.
References VT_ARRAY.
Referenced by 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::WpADOConnection::getPrimaryKeys(), connectivity::ado::WpADOConnection::getProcedureColumns(), connectivity::ado::WpADOConnection::getProcedures(), connectivity::ado::WpADOConnection::getTablePrivileges(), connectivity::ado::WpADOConnection::getTables(), and connectivity::ado::WpADOConnection::getTypeInfo().
void OLEVariant::setBool | ( | bool | b | ) |
Definition at line 211 of file Aolevariant.cxx.
References VT_BOOL.
void OLEVariant::setByte | ( | sal_uInt8 | n | ) |
Definition at line 157 of file Aolevariant.cxx.
void OLEVariant::setChar | ( | unsigned char | a | ) |
Definition at line 197 of file Aolevariant.cxx.
void OLEVariant::setCurrency | ( | double | aCur | ) |
Definition at line 204 of file Aolevariant.cxx.
void OLEVariant::setDate | ( | DATE | d | ) |
Definition at line 191 of file Aolevariant.cxx.
void OLEVariant::setDouble | ( | double | d | ) |
Definition at line 184 of file Aolevariant.cxx.
void OLEVariant::setEmpty | ( | ) |
Definition at line 239 of file Aolevariant.cxx.
References VT_EMPTY.
Referenced by connectivity::ado::OPreparedStatement::clearParameters(), and connectivity::ado::WpADOField::get_Value().
void OLEVariant::setFloat | ( | float | f | ) |
Definition at line 178 of file Aolevariant.cxx.
References VT_R4.
void OLEVariant::setIDispatch | ( | IDispatch * | pDispInterface | ) |
Definition at line 261 of file Aolevariant.cxx.
Referenced by connectivity::ado::OPreparedStatement::executeQuery(), connectivity::ado::OStatement_Base::executeQuery(), and OLEVariant().
void OLEVariant::setInt16 | ( | sal_Int16 | n | ) |
Definition at line 164 of file Aolevariant.cxx.
void OLEVariant::setInt32 | ( | sal_Int32 | n | ) |
Definition at line 171 of file Aolevariant.cxx.
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().
void OLEVariant::setNull | ( | ) |
Definition at line 233 of file Aolevariant.cxx.
References VT_NULL.
Referenced by connectivity::ado::OPreparedStatement::setNull().
void OLEVariant::setString | ( | std::u16string_view | us | ) |
Definition at line 218 of file Aolevariant.cxx.
References VT_BSTR.
Referenced by 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::WpADOConnection::getPrimaryKeys(), connectivity::ado::WpADOConnection::getProcedureColumns(), connectivity::ado::WpADOConnection::getProcedures(), connectivity::ado::WpADOConnection::getTablePrivileges(), and connectivity::ado::WpADOConnection::getTables().
void OLEVariant::setUI1SAFEARRAYPtr | ( | SAFEARRAY * | pSafeAr | ) |
Definition at line 246 of file Aolevariant.cxx.
|
static |
Definition at line 292 of file Aolevariant.cxx.