19 #ifndef INCLUDED_TYPELIB_TYPEDESCRIPTION_HXX
20 #define INCLUDED_TYPELIB_TYPEDESCRIPTION_HXX
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(())
107 {
return this->
operator =( rTypeDescr.get() ); }
121 {
return equals( rTypeDescr._pTypeDescr ); }
125 inline void SAL_CALL
makeComplete() const SAL_THROW(());
132 {
return _pTypeDescr; }
137 inline bool SAL_CALL
is() const SAL_THROW(())
138 {
return (_pTypeDescr != 0); }
142 : _pTypeDescr( pTypeDescr )
158 if (rType.getTypeLibType())
163 : _pTypeDescr( rTypeDescr._pTypeDescr )
193 _pTypeDescr = pTypeDescr;
199 return (_pTypeDescr && pTypeDescr &&
205 if (_pTypeDescr && !_pTypeDescr->
bComplete)
typelib_TypeDescription * get() const SAL_THROW(())
Gets the UNacquired type description pointer.
Definition: typedescription.hxx:131
void makeComplete() const SAL_THROW(())
Makes stored type description complete.
Definition: typedescription.hxx:203
CPPU_DLLPUBLIC sal_Bool typelib_typedescription_complete(typelib_TypeDescription **ppTypeDescr) SAL_THROW_EXTERN_C()
Completes a typedescription to be used for, e.g., marshalling values.
TypeDescription(typelib_TypeDescription *pTypeDescr=0) SAL_THROW(())
Constructor:
Definition: typedescription.hxx:141
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
sal_Bool bComplete
flag to determine whether the description is complete: compound types lack of member names...
Definition: typedescription.h:102
CPPU_DLLPUBLIC void typelib_typedescriptionreference_getDescription(typelib_TypeDescription **ppRet, typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Retrieves the type description for a given reference.
Holds a weak reference to a type description.
Definition: typedescription.h:40
bool equals(const TypeDescription &rTypeDescr) const SAL_THROW(())
Tests whether two type descriptions are equal.
Definition: typedescription.hxx:120
CPPU_DLLPUBLIC void typelib_typedescription_acquire(typelib_TypeDescription *pDesc) SAL_THROW_EXTERN_C()
Increments reference count of given type description.
#define SAL_THROW(x)
Exception specification documentation.
Definition: types.h:361
Full type description of a type.
Definition: typedescription.h:71
CPPU_DLLPUBLIC sal_Bool typelib_typedescription_equals(const typelib_TypeDescription *p1, const typelib_TypeDescription *p2) SAL_THROW_EXTERN_C()
Tests whether two types descriptions are equal, i.e.
CPPU_DLLPUBLIC void typelib_typedescription_getByName(typelib_TypeDescription **ppRet, rtl_uString *pName) SAL_THROW_EXTERN_C()
Retrieves a type description via its fully qualified name.
CPPU_DLLPUBLIC void typelib_typedescription_release(typelib_TypeDescription *pDesc) SAL_THROW_EXTERN_C()
Decrements reference count of given type.
bool is() const SAL_THROW(())
Tests if a type description is set.
Definition: typedescription.hxx:137
TypeDescription & operator=(typelib_TypeDescription *pTypeDescr) SAL_THROW(())
Assignment operator: acquires given type description and releases a set one.
Definition: typedescription.hxx:187
bool equals(const typelib_TypeDescription *pTypeDescr) const SAL_THROW(())
Tests whether two type descriptions are equal.
Definition: typedescription.hxx:197
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
C++ wrapper for typelib_TypeDescription.
Definition: typedescription.hxx:42
~TypeDescription() SAL_THROW(())
Destructor: releases type description.
Definition: typedescription.hxx:181