5#ifndef BASE_WIN_SCOPED_VARIANT_H_
6#define BASE_WIN_SCOPED_VARIANT_H_
78 inline VARTYPE
type()
const {
return var_.vt; }
105 int Compare(
const VARIANT& other,
bool ignore_case =
false)
const;
113 void Set(
const wchar_t* str);
117 void Set(uint8_t ui8);
118 void Set(int16_t i16);
119 void Set(uint16_t ui16);
120 void Set(int32_t i32);
121 void Set(uint32_t ui32);
122 void Set(int64_t i64);
123 void Set(uint64_t ui64);
125 void Set(
double r64);
134 void Set(IDispatch* disp);
135 void Set(IUnknown* unk);
138 void Set(SAFEARRAY* array);
142 void SetDate(DATE date);
165 return const_cast<VARIANT*
>(&var_);
170 operator const VARIANT&()
const {
return var_; }
173 static bool IsLeakableVarType(VARTYPE vt);
static const VARIANT kEmptyVariant
const VARIANT * ptr() const
VARIANT * AsInput() const
bool operator==(C p1, const scoped_nsprotocol< C > &p2)
bool operator!=(C p1, const scoped_nsprotocol< C > &p2)
def Compare(symbols1, symbols2)
#define BASE_DISALLOW_COPY_AND_ASSIGN(TypeName)