19 #ifndef INCLUDED_COM_SUN_STAR_UNO_ANY_H
20 #define INCLUDED_COM_SUN_STAR_UNO_ANY_H
51 inline static void * SAL_CALL
operator new (
size_t nSize )
SAL_THROW(())
53 inline static void SAL_CALL
operator delete (
void * pMem )
SAL_THROW(())
55 inline static void * SAL_CALL
operator new ( size_t,
void * pMem )
SAL_THROW(())
57 inline static void SAL_CALL
operator delete (
void *,
void * )
SAL_THROW(())
70 explicit inline Any( T
const & value );
72 explicit inline Any(
bool value );
117 {
return *
reinterpret_cast< const Type *
>( &pType ); }
144 inline ::rtl::OUString SAL_CALL getValueTypeName() const SAL_THROW(());
150 inline
sal_Bool SAL_CALL hasValue() const SAL_THROW(())
157 inline const void * SAL_CALL
getValue() const SAL_THROW(())
172 template <
typename T>
173 inline T
get()
const;
181 inline void SAL_CALL setValue(
const void * pData_,
const Type & rType )
SAL_THROW(());
200 inline void SAL_CALL clear() SAL_THROW(());
208 inline
sal_Bool SAL_CALL isExtractableTo( const
Type & rType ) const SAL_THROW(());
216 template <typename T>
217 inline
bool has() const;
225 inline
sal_Bool SAL_CALL operator == ( const
Any & rAny ) const SAL_THROW(());
232 inline
sal_Bool SAL_CALL operator != ( const
Any & rAny ) const SAL_THROW(());
236 explicit
Any( sal_uInt16 );
237 #if defined(_MSC_VER)
242 sal_uInt16 get<sal_uInt16>()
const;
244 bool has<sal_uInt16>()
const;
245 #endif // defined(_MSC_VER)
274 inline void SAL_CALL
operator <<= ( Any & rAny,
bool const & value )
366 return ::cppu::UnoType< ::com::sun::star::uno::Any >::get();
sal_Bool operator!=(const Any &rAny, const C &value)
Template unequality operator: compares set value of left side any to right side value.
Definition: Any.hxx:565
Holds a weak reference to a type description.
Definition: typedescription.h:40
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82
const Type & getValueType() const
Gets the type of the set value.
Definition: Any.h:116
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition: types.h:570
C++ class representing an IDL meta type.
Definition: Type.h:55
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
typelib_TypeDescriptionReference * getValueTypeRef() const
Gets the type of the set value.
Definition: Any.h:122
void getValueTypeDescription(typelib_TypeDescription **ppTypeDescr) const
Gets the type description of the set value.
Definition: Any.h:130
Full type description of a type.
Definition: typedescription.h:71
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:591
void operator<<=(Any &rAny, const C &value)
Template binary <<= operator to set the value of an any.
Definition: Any.hxx:208
sal_Bool operator>>=(const Any &rAny, C &value)
Template binary >>= operator to assign a value from an any.
Definition: Any.hxx:242
const void * getValue() const
Gets a pointer to the set value.
Definition: Any.h:157
C++ class representing an IDL any.
Definition: Any.h:46
typelib_TypeClass eTypeClass
type class of type
Definition: typedescription.h:52
unsigned char sal_Bool
Definition: types.h:46
This is the binary specification of an UNO any.
Definition: any2.h:40
sal_Bool operator==(const Any &rAny, const C &value)
Template equality operator: compares set value of left side any to right side value.
Definition: Any.hxx:554
Any makeAny(const C &value)
Template function to generically construct an any from a C++ value.
Definition: Any.hxx:183
TypeClass getValueTypeClass() const
Gets the type class of the set value.
Definition: Any.h:137
signed char sal_Int8
Definition: types.h:51
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
type class of void
Definition: typeclass.h:29
CPPU_DLLPUBLIC void typelib_typedescriptionreference_getDescription(typelib_TypeDescription **ppRet, typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Retrieves the type description for a given reference.
const ::com::sun::star::uno::Type & getCppuType(SAL_UNUSED_PARAMETER const ::com::sun::star::uno::Any *)
Gets the meta type of IDL type any.
Definition: Any.h:364
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358