OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Automation data element (same data as OLE/BASIC VARIANT) More...
#include <ocf/autodefs.h>
Automation data element (same data as OLE/BASIC VARIANT)
This class simply duplicates and adds access methods to the system VARIANT Data members or virtual functions cannot be added. We rely on the fact that we can cast a VARIANT safely to/from a TAutoVal.
Definition at line 526 of file autodefs.h.
|
inline |
Definition at line 1564 of file autodefs.h.
References Init().
|
inline |
Definition at line 1578 of file autodefs.h.
References Init().
|
inline |
Definition at line 1571 of file autodefs.h.
References Clear().
Definition at line 538 of file autodefs.h.
Definition at line 539 of file autodefs.h.
|
inline |
Definition at line 540 of file autodefs.h.
Definition at line 541 of file autodefs.h.
Definition at line 542 of file autodefs.h.
|
inlineexplicit |
Definition at line 543 of file autodefs.h.
|
inline |
Definition at line 544 of file autodefs.h.
|
inline |
Definition at line 545 of file autodefs.h.
|
inline |
Definition at line 546 of file autodefs.h.
Definition at line 547 of file autodefs.h.
Definition at line 548 of file autodefs.h.
Definition at line 549 of file autodefs.h.
Definition at line 550 of file autodefs.h.
|
inline |
Definition at line 551 of file autodefs.h.
|
inline |
Definition at line 552 of file autodefs.h.
Definition at line 553 of file autodefs.h.
Definition at line 554 of file autodefs.h.
|
inline |
Definition at line 555 of file autodefs.h.
|
inline |
Definition at line 556 of file autodefs.h.
|
inline |
Definition at line 557 of file autodefs.h.
|
inline |
Definition at line 558 of file autodefs.h.
|
inline |
Definition at line 559 of file autodefs.h.
|
inline |
Definition at line 560 of file autodefs.h.
|
inline |
Definition at line 561 of file autodefs.h.
|
inline |
Definition at line 562 of file autodefs.h.
|
inline |
Definition at line 563 of file autodefs.h.
|
inline |
Definition at line 564 of file autodefs.h.
|
inline |
Definition at line 566 of file autodefs.h.
|
inline |
Definition at line 568 of file autodefs.h.
|
inline |
Definition at line 569 of file autodefs.h.
|
inline |
Definition at line 570 of file autodefs.h.
|
inline |
Definition at line 571 of file autodefs.h.
|
inline |
Definition at line 572 of file autodefs.h.
|
inline |
Definition at line 573 of file autodefs.h.
|
inline |
Definition at line 574 of file autodefs.h.
|
inline |
Definition at line 575 of file autodefs.h.
|
inline |
Definition at line 576 of file autodefs.h.
|
inline |
Definition at line 577 of file autodefs.h.
|
inline |
Definition at line 578 of file autodefs.h.
|
inline |
Definition at line 579 of file autodefs.h.
|
inline |
Definition at line 580 of file autodefs.h.
|
inline |
Definition at line 584 of file autodefs.h.
|
inline |
Definition at line 585 of file autodefs.h.
|
inline |
Definition at line 586 of file autodefs.h.
|
inline |
Definition at line 587 of file autodefs.h.
|
inline |
Definition at line 588 of file autodefs.h.
|
inline |
Definition at line 589 of file autodefs.h.
Converts TAutoVal/VARIANT to another type.
Definition at line 1735 of file autodefs.h.
|
inline |
Definition at line 1697 of file autodefs.h.
References ocf::atByRef, ocf::atLoanedBSTR, ocf::atString, bstrVal, pbstrVal, and s.
Definition at line 1722 of file autodefs.h.
References ocf::atObject, ocf::atString, ocf::atUnknown, bstrVal, p, punkVal, and owl::SysAllocString().
|
inline |
Definition at line 1747 of file autodefs.h.
References ocf::atByRef, ocf::atVariant, and pvarVal.
|
inline |
Definition at line 1771 of file autodefs.h.
References ocf::atByRef, ocf::atSafeArray, parray, and pparray.
|
inline |
Definition at line 1684 of file autodefs.h.
TLangId TAutoVal::GetLanguage | ( | ) | const |
Definition at line 106 of file autoval.cpp.
References ocf::atObject, ocf::atString, ocf::atVoid, and p.
TLocaleId TAutoVal::GetLocale | ( | ) | const |
Definition at line 91 of file autoval.cpp.
References ocf::atObject, ocf::atString, ocf::atVoid, and p.
|
inline |
Definition at line 1759 of file autodefs.h.
References ocf::atObjectDesc, ocf::TObjectDescBase::Class, ocf::TObjectDescriptor::Delete, ocf::TObjectDescriptor::Destruct, IsRef(), ObjDesc, ocf::TObjectDescBase::Object, and ocf::TObjectDescriptor::Quiet.
|
inline |
Definition at line 1690 of file autodefs.h.
|
inline |
Is TAutoVal Object (i.e. VARIANT) passing data by reference.
Definition at line 1741 of file autodefs.h.
References ocf::atByRef.
TAutoVal::operator BSTR | ( | ) |
Definition at line 683 of file autoval.cpp.
References ocf::atBool, ocf::atByRef, ocf::atByte, ocf::atCurrency, ocf::atDatetime, ocf::atDouble, ocf::atFloat, ocf::atLong, ocf::atObject, ocf::atShort, ocf::atString, boolVal, bstrVal, bVal, cyVal, date, dblVal, fltVal, GetLocale(), HR_NOERROR, iVal, owl::LangUserDefault, lVal, pbool, pbstrVal, pbVal, pcyVal, pdate, pdblVal, pdispVal, pfltVal, piVal, plVal, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator BSTR * | ( | ) |
Definition at line 718 of file autoval.cpp.
References ocf::atString, and pbstrVal.
|
inline |
Definition at line 1606 of file autodefs.h.
|
inline |
Definition at line 1607 of file autodefs.h.
TAutoVal::operator double | ( | ) |
Definition at line 276 of file autoval.cpp.
References ocf::atBool, ocf::atByRef, ocf::atByte, ocf::atCurrency, ocf::atDatetime, ocf::atDouble, ocf::atFloat, ocf::atLong, ocf::atObject, ocf::atShort, ocf::atString, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator double * | ( | ) |
Definition at line 534 of file autoval.cpp.
References ocf::atDouble.
TAutoVal::operator float | ( | ) |
Definition at line 245 of file autoval.cpp.
References ocf::atBool, ocf::atByRef, ocf::atByte, ocf::atCurrency, ocf::atDatetime, ocf::atDouble, ocf::atFloat, ocf::atLong, ocf::atObject, ocf::atShort, ocf::atString, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator float * | ( | ) |
Definition at line 526 of file autoval.cpp.
References ocf::atFloat.
TAutoVal::operator IDispatch & | ( | ) |
Definition at line 656 of file autoval.cpp.
References ocf::atByRef, ocf::atObject, pdispVal, ppdispVal, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator IDispatch * | ( | ) |
Definition at line 582 of file autoval.cpp.
References ocf::atByRef, ocf::atObject, pdispVal, ppdispVal, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator IDispatch ** | ( | ) |
Definition at line 752 of file autoval.cpp.
References ocf::atByRef, ocf::atObject, pdispVal, ppdispVal, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator IFontDisp & | ( | ) |
Definition at line 675 of file autoval.cpp.
References STATIC_CAST.
TAutoVal::operator IFontDisp * | ( | ) |
Definition at line 609 of file autoval.cpp.
References STATIC_CAST.
|
inline |
Definition at line 1600 of file autodefs.h.
|
inline |
Definition at line 1602 of file autodefs.h.
TAutoVal::operator IPictureDisp & | ( | ) |
Definition at line 668 of file autoval.cpp.
References STATIC_CAST.
TAutoVal::operator IPictureDisp * | ( | ) |
Definition at line 601 of file autoval.cpp.
References STATIC_CAST.
TAutoVal::operator IUnknown & | ( | ) |
Definition at line 644 of file autoval.cpp.
References ocf::atByRef, ocf::atUnknown, ppunkVal, punkVal, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator IUnknown * | ( | ) |
Definition at line 616 of file autoval.cpp.
References ocf::atByRef, ocf::atObject, ocf::atUnknown, pdispVal, ppdispVal, ppunkVal, punkVal, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator IUnknown ** | ( | ) |
Definition at line 738 of file autoval.cpp.
References ocf::atByRef, ocf::atUnknown, ppunkVal, punkVal, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator LARGE_INTEGER | ( | ) |
Definition at line 771 of file autoval.cpp.
References hVal, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator long | ( | ) |
Definition at line 184 of file autoval.cpp.
References ocf::atBool, ocf::atByRef, ocf::atByte, ocf::atCurrency, ocf::atDatetime, ocf::atDouble, ocf::atFloat, ocf::atLong, ocf::atObject, ocf::atShort, ocf::atString, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator long * | ( | ) |
Definition at line 502 of file autoval.cpp.
References ocf::atLong.
ocf::TAutoVal::operator owl::TBool | ( | ) |
ocf::TAutoVal::operator owl::TBool * | ( | ) |
TAutoVal::operator owl::tstring | ( | ) |
Definition at line 412 of file autoval.cpp.
References ocf::atBool, ocf::atByRef, ocf::atByte, ocf::atCurrency, ocf::atDatetime, ocf::atDouble, ocf::atFloat, ocf::atLong, ocf::atObject, ocf::atShort, ocf::atString, HR_NOERROR, owl::LangUserDefault, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
ocf::TAutoVal::operator owl::TString | ( | ) |
ocf::TAutoVal::operator owl::TUString * | ( | ) |
TAutoVal::operator SAFEARRAY * | ( | ) |
Definition at line 730 of file autoval.cpp.
References ocf::atByRef, ocf::atSafeArray, parray, pparray, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator short | ( | ) |
case atLong: if (lVal>0x7FFFL || lVal <0xFFFF8000L) break; return (short)lVal;
case atByRef+atLong: if (*plVal>0x7FFFL || *plVal <0xFFFF8000L) break; return (short)*plVal;
Definition at line 151 of file autoval.cpp.
References ocf::atBool, ocf::atByRef, ocf::atByte, ocf::atCurrency, ocf::atDatetime, ocf::atDouble, ocf::atFloat, ocf::atLong, ocf::atObject, ocf::atShort, ocf::atString, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator short * | ( | ) |
Definition at line 486 of file autoval.cpp.
References ocf::atShort.
Definition at line 1605 of file autodefs.h.
Definition at line 1608 of file autodefs.h.
TAutoVal::operator TAutoCurrency | ( | ) |
Definition at line 336 of file autoval.cpp.
References ocf::atBool, ocf::atByRef, ocf::atByte, ocf::atCurrency, ocf::atDouble, ocf::atFloat, ocf::atLong, ocf::atObject, ocf::atShort, ocf::atString, HR_NOERROR, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator TAutoCurrency * | ( | ) |
Definition at line 558 of file autoval.cpp.
References ocf::atCurrency.
TAutoVal::operator TAutoDate | ( | ) |
Definition at line 307 of file autoval.cpp.
References ocf::atBool, ocf::atByRef, ocf::atByte, ocf::atDatetime, ocf::atDouble, ocf::atFloat, ocf::atLong, ocf::atObject, ocf::atShort, ocf::atString, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
TAutoVal::operator TAutoDate * | ( | ) |
Definition at line 550 of file autoval.cpp.
References ocf::atDatetime.
TAutoVal::operator TAutoString | ( | ) |
Definition at line 450 of file autoval.cpp.
TAutoVal::operator TAutoVal * | ( | ) |
Definition at line 766 of file autoval.cpp.
TAutoVal::operator TBSTR * | ( | ) |
Definition at line 724 of file autoval.cpp.
References ocf::atString, and pbstrVal.
TAutoVal::operator ULARGE_INTEGER | ( | ) |
Definition at line 782 of file autoval.cpp.
References ocf::TXAuto::Raise(), uhVal, and ocf::TXAuto::xConversionFailure.
Definition at line 120 of file autoval.cpp.
References ocf::atBool, ocf::atByRef, ocf::atByte, ocf::atCurrency, ocf::atDatetime, ocf::atDouble, ocf::atFloat, ocf::atLong, ocf::atObject, ocf::atShort, ocf::atString, ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
Definition at line 478 of file autoval.cpp.
References ocf::atByte.
Definition at line 1601 of file autodefs.h.
Definition at line 1594 of file autodefs.h.
Definition at line 510 of file autoval.cpp.
References ocf::atLong.
Definition at line 467 of file autoval.cpp.
References ocf::TXAuto::Raise(), and ocf::TXAuto::xConversionFailure.
Definition at line 494 of file autoval.cpp.
References ocf::atShort.
TAutoVal::operator void * | ( | ) |
Definition at line 542 of file autoval.cpp.
References ocf::atVoid.
Definition at line 1659 of file autodefs.h.
References ocf::atByRef, ocf::atString, p, and pbstrVal.
Definition at line 1632 of file autodefs.h.
References ocf::atByRef, ocf::atByte, p, and pbVal.
Definition at line 1619 of file autodefs.h.
References ocf::atByte, and bVal.
Definition at line 57 of file autoval.cpp.
References ocf::atString, bstrVal, owl::TLocaleString::NativeLangId, s, SetLocale(), and owl::SysAllocString().
void TAutoVal::operator= | ( | const owl::tstring & | s | ) |
Definition at line 43 of file autoval.cpp.
References ocf::atString, bstrVal, owl::TLocaleString::NativeLangId, s, SetLocale(), and owl::SysAllocString().
Definition at line 1586 of file autodefs.h.
Definition at line 1628 of file autodefs.h.
References ocf::atError, and scode.
Definition at line 1637 of file autodefs.h.
References ocf::atByRef, ocf::atDouble, p, and pdblVal.
Definition at line 1623 of file autodefs.h.
References ocf::atDouble, and dblVal.
Definition at line 1636 of file autodefs.h.
References ocf::atByRef, ocf::atFloat, p, and pfltVal.
Definition at line 1622 of file autodefs.h.
References ocf::atFloat, and fltVal.
Definition at line 1662 of file autodefs.h.
References ocf::atByRef, ocf::atObject, p, and ppdispVal.
Definition at line 1611 of file autodefs.h.
References ocf::atObject, and pdispVal.
Definition at line 1614 of file autodefs.h.
References ocf::atObject, and pdispVal.
Definition at line 1653 of file autodefs.h.
References ocf::atByRef, ocf::atLong, p, and plVal.
Definition at line 1652 of file autodefs.h.
References ocf::atLong, and lVal.
|
inline |
Definition at line 1613 of file autodefs.h.
References ocf::atObject, and pdispVal.
|
inline |
Definition at line 1661 of file autodefs.h.
References ocf::atByRef, ocf::atUnknown, p, and ppunkVal.
|
inline |
Definition at line 1610 of file autodefs.h.
References ocf::atUnknown, and punkVal.
|
inline |
Definition at line 1664 of file autodefs.h.
References hVal.
Definition at line 1634 of file autodefs.h.
References ocf::atByRef, ocf::atLong, p, and plVal.
Definition at line 1621 of file autodefs.h.
References ocf::atLong, and lVal.
|
inline |
Definition at line 1635 of file autodefs.h.
References ocf::atBool, ocf::atByRef, p, and pbool.
|
inline |
Definition at line 1624 of file autodefs.h.
References ocf::atBool, and boolVal.
void TAutoVal::operator= | ( | owl::TString | s | ) |
Definition at line 33 of file autoval.cpp.
References ocf::atString, bstrVal, owl::TLocaleString::NativeLangId, s, SetLocale(), and owl::SysAllocString().
Definition at line 1666 of file autodefs.h.
Definition at line 1633 of file autodefs.h.
References ocf::atByRef, ocf::atShort, p, and piVal.
Definition at line 1620 of file autodefs.h.
References ocf::atShort, and iVal.
Definition at line 1631 of file autodefs.h.
References ocf::atByRef, ocf::atByte, p, and pbVal.
Definition at line 1618 of file autodefs.h.
References ocf::atByte, and bVal.
|
inline |
Definition at line 1640 of file autodefs.h.
References ocf::atByRef, ocf::atCurrency, p, and pcyVal.
|
inline |
Definition at line 1626 of file autodefs.h.
References ocf::atCurrency, and cyVal.
Definition at line 1639 of file autodefs.h.
References ocf::atByRef, ocf::atDatetime, p, and pdate.
Definition at line 1625 of file autodefs.h.
References ocf::atDatetime, and date.
void TAutoVal::operator= | ( | TAutoString | s | ) |
Definition at line 23 of file autoval.cpp.
References ocf::atString, bstrVal, owl::TLocaleString::NativeLangId, s, SetLocale(), and owl::SysAllocString().
Definition at line 1663 of file autodefs.h.
References ocf::atByRef, ocf::atVariant, p, and pvarVal.
Definition at line 1627 of file autodefs.h.
References ocf::atVoid.
Definition at line 1660 of file autodefs.h.
References ocf::atByRef, ocf::atString, p, and pbstrVal.
|
inline |
Definition at line 1673 of file autodefs.h.
References ocf::atByRef, ocf::atObjectDesc, ocf::TObjectDescBase::Class, ocf::TObjectDescriptor::Delete, ocf::TObjectDescriptor::Destruct, ObjDesc, and ocf::TObjectDescBase::Object.
|
inline |
Definition at line 1665 of file autodefs.h.
References uhVal.
Definition at line 1630 of file autodefs.h.
References ocf::atByRef, ocf::atByte, p, and pbVal.
Definition at line 1617 of file autodefs.h.
References ocf::atByte, and bVal.
Definition at line 1655 of file autodefs.h.
References operator=(), and p.
Definition at line 1654 of file autodefs.h.
References operator=().
Definition at line 1645 of file autodefs.h.
References ocf::atByRef, ocf::atLong, p, and plVal.
Definition at line 1644 of file autodefs.h.
References ocf::atLong, and lVal.
Definition at line 1643 of file autodefs.h.
References ocf::atByRef, ocf::atShort, p, and piVal.
Definition at line 1642 of file autodefs.h.
References ocf::atLong, and lVal.
Definition at line 1616 of file autodefs.h.
References ocf::atVariant, and pvarVal.
Definition at line 1638 of file autodefs.h.
References ocf::atByRef, ocf::atVoid, byref, and p.
|
inline |
Definition at line 1708 of file autodefs.h.
References ocf::atBool, ocf::atByRef, ocf::atLoanedBSTR, ocf::atString, bstrVal, pbool, pbstrVal, and s.
|
inline |
Definition at line 1791 of file autodefs.h.
References ocf::atVariant, and byref.
Definition at line 77 of file autoval.cpp.
References ocf::atObject, ocf::atString, ocf::atVoid, and p.
|
inline |
Definition at line 1753 of file autodefs.h.
References ocf::atString, and bstrVal.
VARIANT_BOOL ocf::TAutoVal::boolVal |
Definition at line 745 of file autodefs.h.
BSTR ocf::TAutoVal::bstrVal |
Definition at line 749 of file autodefs.h.
Definition at line 740 of file autodefs.h.
void* ocf::TAutoVal::byref |
Definition at line 767 of file autodefs.h.
TAutoCurrency ocf::TAutoVal::cyVal |
Definition at line 747 of file autodefs.h.
DATE ocf::TAutoVal::date |
Definition at line 748 of file autodefs.h.
double ocf::TAutoVal::dblVal |
Definition at line 744 of file autodefs.h.
float ocf::TAutoVal::fltVal |
Definition at line 743 of file autodefs.h.
owl::TUString* ocf::TAutoVal::Holder |
String holder sharing current BSTR.
Definition at line 780 of file autodefs.h.
LARGE_INTEGER ocf::TAutoVal::hVal |
Also support LARGE_INTEGER.
Definition at line 785 of file autodefs.h.
short ocf::TAutoVal::iVal |
Definition at line 741 of file autodefs.h.
LCID ocf::TAutoVal::Locale |
Unused 4 bytes for pointer types.
Definition at line 775 of file autodefs.h.
long ocf::TAutoVal::lVal |
Definition at line 742 of file autodefs.h.
TObjectDescBase ocf::TAutoVal::ObjDesc |
Temporary space for returning object.
Definition at line 783 of file autodefs.h.
struct { ... } ocf::TAutoVal::p |
SAFEARRAY* ocf::TAutoVal::parray |
Definition at line 752 of file autodefs.h.
VARIANT_BOOL* ocf::TAutoVal::pbool |
Definition at line 758 of file autodefs.h.
BSTR* ocf::TAutoVal::pbstrVal |
Definition at line 762 of file autodefs.h.
Definition at line 753 of file autodefs.h.
TAutoCurrency* ocf::TAutoVal::pcyVal |
Definition at line 760 of file autodefs.h.
DATE* ocf::TAutoVal::pdate |
Definition at line 761 of file autodefs.h.
double* ocf::TAutoVal::pdblVal |
Definition at line 757 of file autodefs.h.
IDispatch* ocf::TAutoVal::pdispVal |
Definition at line 751 of file autodefs.h.
float* ocf::TAutoVal::pfltVal |
Definition at line 756 of file autodefs.h.
short* ocf::TAutoVal::piVal |
Definition at line 754 of file autodefs.h.
long* ocf::TAutoVal::plVal |
Definition at line 755 of file autodefs.h.
SAFEARRAY* * ocf::TAutoVal::pparray |
Definition at line 765 of file autodefs.h.
IDispatch* * ocf::TAutoVal::ppdispVal |
Definition at line 764 of file autodefs.h.
IUnknown* * ocf::TAutoVal::ppunkVal |
Definition at line 763 of file autodefs.h.
SCODE* ocf::TAutoVal::pscode |
Definition at line 759 of file autodefs.h.
IUnknown* ocf::TAutoVal::punkVal |
Definition at line 750 of file autodefs.h.
VARIANT* ocf::TAutoVal::pvarVal |
Definition at line 766 of file autodefs.h.
struct { ... } ocf::TAutoVal::s |
SCODE ocf::TAutoVal::scode |
Definition at line 746 of file autodefs.h.
ULARGE_INTEGER ocf::TAutoVal::uhVal |
Also support ULARGE_INTEGER.
Definition at line 786 of file autodefs.h.
void* ocf::TAutoVal::Val |
< Added locale info for BSTR/IDispatch
Definition at line 774 of file autodefs.h.
BSTR ocf::TAutoVal::Val |
< Added info when loaned BSTR ownership
Definition at line 779 of file autodefs.h.