20 #ifndef INCLUDED_REGISTRY_READER_HXX
21 #define INCLUDED_REGISTRY_READER_HXX
28 #include <rtl/ustring.hxx>
58 Reader(
void const * buffer, sal_uInt32 length)
62 throw std::bad_alloc();
127 rtl_uString * s =
nullptr;
130 throw std::bad_alloc();
132 return OUString(s, SAL_NO_ACQUIRE);
145 rtl_uString * s =
nullptr;
148 throw std::bad_alloc();
150 return OUString(s, SAL_NO_ACQUIRE);
186 rtl_uString * s =
nullptr;
189 throw std::bad_alloc();
191 return OUString(s, SAL_NO_ACQUIRE);
215 rtl_uString * s =
nullptr;
218 throw std::bad_alloc();
220 return OUString(s, SAL_NO_ACQUIRE);
243 rtl_uString * s =
nullptr;
246 throw std::bad_alloc();
248 return OUString(s, SAL_NO_ACQUIRE);
262 rtl_uString * s =
nullptr;
265 throw std::bad_alloc();
267 return OUString(s, SAL_NO_ACQUIRE);
291 rtl_uString * s =
nullptr;
294 throw std::bad_alloc();
296 return OUString(s, SAL_NO_ACQUIRE);
309 rtl_uString * s =
nullptr;
312 throw std::bad_alloc();
314 return OUString(s, SAL_NO_ACQUIRE);
331 throw std::bad_alloc();
356 rtl_uString * s =
nullptr;
359 throw std::bad_alloc();
361 return OUString(s, SAL_NO_ACQUIRE);
385 rtl_uString * s =
nullptr;
388 throw std::bad_alloc();
390 return OUString(s, SAL_NO_ACQUIRE);
403 rtl_uString * s =
nullptr;
406 throw std::bad_alloc();
408 return OUString(s, SAL_NO_ACQUIRE);
434 sal_uInt16 methodIndex, sal_uInt16 parameterIndex)
const
437 m_handle, methodIndex, parameterIndex);
454 sal_uInt16 methodIndex, sal_uInt16 parameterIndex)
const
456 rtl_uString * s =
nullptr;
458 m_handle, &s, methodIndex, parameterIndex);
460 throw std::bad_alloc();
462 return OUString(s, SAL_NO_ACQUIRE);
479 sal_uInt16 methodIndex, sal_uInt16 parameterIndex)
const
481 rtl_uString * s =
nullptr;
483 m_handle, &s, methodIndex, parameterIndex);
485 throw std::bad_alloc();
487 return OUString(s, SAL_NO_ACQUIRE);
515 sal_uInt16 methodIndex, sal_uInt16 exceptionIndex)
const
517 rtl_uString * s =
nullptr;
519 m_handle, &s, methodIndex, exceptionIndex);
521 throw std::bad_alloc();
523 return OUString(s, SAL_NO_ACQUIRE);
547 rtl_uString * s =
nullptr;
550 throw std::bad_alloc();
552 return OUString(s, SAL_NO_ACQUIRE);
590 rtl_uString * s =
nullptr;
593 throw std::bad_alloc();
595 return OUString(s, SAL_NO_ACQUIRE);
Reader(void const *buffer, sal_uInt32 length)
Creates a type reader.
OUString getFieldTypeName(sal_uInt16 index) const
Returns the type name of a field of this type reader.
void TYPEREG_CALLTYPE typereg_reader_release(void *hEntry)
Decrements the reference count of a type reader.
OUString getMethodParameterName(sal_uInt16 methodIndex, sal_uInt16 parameterIndex) const
Returns the name of a parameter of a method of this type reader.
sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getFieldCount(void *hEntry)
Returns the number of fields of a type reader.
Reader(Reader const &other)
Shares a type reader between two Reader instances.
RTParamMode
specifies the mode of a parameter.
sal_uInt16 getFieldCount() const
Returns the number of fields of this type reader.
RTReferenceType
specifies the type of a reference used in a service description.
OUString getReferenceTypeName(sal_uInt16 index) const
Returns the type name of a reference of this type reader.
OUString getDocumentation() const
Returns the documentation of this type reader.
RTValueType m_type
stores the type of the constant value.
RTMethodMode TYPEREG_CALLTYPE typereg_reader_getMethodFlags(void *hEntry, sal_uInt16 index)
Returns the flags of a method of a type reader.
sal_uInt16 getReferenceCount() const
Returns the number of references of this type reader.
void TYPEREG_CALLTYPE typereg_reader_getMethodDocumentation(void *hEntry, rtl_uString **pMethodDoku, sal_uInt16 index)
Returns the documentation of a method of a type reader.
bool TYPEREG_CALLTYPE typereg_reader_getFieldValue(void *hEntry, sal_uInt16 index, RTValueType *type, RTConstValueUnion *value)
Returns the value of a field of a type reader.
sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getMethodParameterCount(void *hEntry, sal_uInt16 index)
Returns the number of parameters of a method of a type reader.
OUString getMethodDocumentation(sal_uInt16 index) const
Returns the documentation of a method of this type reader.
void TYPEREG_CALLTYPE typereg_reader_getFileName(void *hEntry, rtl_uString **pFileName)
Returns the file name of a type reader.
sal_uInt16 getMethodCount() const
Returns the number of methods of this type reader.
void TYPEREG_CALLTYPE typereg_reader_getReferenceDocumentation(void *hEntry, rtl_uString **pReferenceDoku, sal_uInt16 index)
Returns the documentation of a reference of a type reader.
RTConstValue getFieldValue(sal_uInt16 index) const
Returns the value of a field of this type reader.
RTFieldAccess getFieldFlags(sal_uInt16 index) const
Returns the flags of a field of this type reader.
RTFieldAccess TYPEREG_CALLTYPE typereg_reader_getFieldFlags(void *hEntry, sal_uInt16 index)
Returns the flags of a field of a type reader.
A type reader working on a binary blob that represents a UNOIDL type.
RTParamMode getMethodParameterFlags(sal_uInt16 methodIndex, sal_uInt16 parameterIndex) const
Returns the flags of a parameter of a method of this type reader.
bool TYPEREG_CALLTYPE typereg_reader_isPublished(void *hEntry)
Returns whether a type reader is published.
void TYPEREG_CALLTYPE typereg_reader_getFieldDocumentation(void *hEntry, rtl_uString **pDoku, sal_uInt16 index)
Returns the documentation of a field of a type reader.
RTParamMode TYPEREG_CALLTYPE typereg_reader_getMethodParameterFlags(void *hEntry, sal_uInt16 index, sal_uInt16 paramIndex)
Returns the flags of a parameter of a method of a type reader.
bool isValid() const
Returns whether this type reader is valid.
OUString getMethodName(sal_uInt16 index) const
Returns the name of a method of this type reader.
OUString getReferenceDocumentation(sal_uInt16 index) const
Returns the documentation of a reference of this type reader.
void TYPEREG_CALLTYPE typereg_reader_getTypeName(void *hEntry, rtl_uString **pTypeName)
Returns the type name of a type reader.
typereg_Version
The version of a binary blob that represents a UNOIDL type.
RTConstValueUnion m_value
stores the value of the constant.
RTTypeClass getTypeClass() const
Returns the type class of this type reader.
RTMethodMode getMethodFlags(sal_uInt16 index) const
Returns the flags of a method of this type reader.
bool isPublished() const
Returns whether this type reader is published.
void TYPEREG_CALLTYPE typereg_reader_getSuperTypeName(void *hEntry, rtl_uString **pSuperTypeName, sal_uInt16 index)
Returns the type name of a super type of a type reader.
OUString getFileName() const
Returns the file name of this type reader.
sal_uInt16 getMethodParameterCount(sal_uInt16 index) const
Returns the number of parameters of a method of this type reader.
OUString getFieldName(sal_uInt16 index) const
Returns the name of a field of this type reader.
sal_uInt16 getMethodExceptionCount(sal_uInt16 index) const
Returns the number of exceptions of a method of this type reader.
OUString getTypeName() const
Returns the type name of this type reader.
sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getReferenceCount(void *hEntry)
Returns the number of references of a type reader.
OUString getMethodParameterTypeName(sal_uInt16 methodIndex, sal_uInt16 parameterIndex) const
Returns the type name of a parameter of a method of this type reader.
sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getMethodExceptionCount(void *hEntry, sal_uInt16 index)
Returns the number of exceptions of a method of a type reader.
RTTypeClass
specifies the typeclass of a binary type blob.
OUString getSuperTypeName(sal_uInt16 index) const
Returns the type name of a super type of this type reader.
RTFieldAccess TYPEREG_CALLTYPE typereg_reader_getReferenceFlags(void *hEntry, sal_uInt16 index)
Returns the flags of a reference of a type reader.
void TYPEREG_CALLTYPE typereg_reader_getMethodParameterName(void *hEntry, rtl_uString **pMethodParamName, sal_uInt16 index, sal_uInt16 paramIndex)
Returns the name of a parameter of a method of a type reader.
sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getSuperTypeCount(void *hEntry)
Returns the number of super types of a type reader.
bool TYPEREG_CALLTYPE typereg_reader_create(void const *buffer, sal_uInt32 length, void **result)
Creates a type reader working on a binary blob that represents a UNOIDL type.
void TYPEREG_CALLTYPE typereg_reader_getFieldFileName(void *hEntry, rtl_uString **pFieldFileName, sal_uInt16 index)
Returns the file name of a field of a type reader.
void TYPEREG_CALLTYPE typereg_reader_getReferenceTypeName(void *hEntry, rtl_uString **pReferenceName, sal_uInt16 index)
Returns the type name of a reference of a type reader.
Reader & operator=(Reader const &other)
Replaces the underlying type reader.
RTReferenceType TYPEREG_CALLTYPE typereg_reader_getReferenceSort(void *hEntry, sal_uInt16 index)
Returns the sort of a reference of a type reader.
void TYPEREG_CALLTYPE typereg_reader_getMethodReturnTypeName(void *hEntry, rtl_uString **pMethodReturnType, sal_uInt16 index)
Returns the return type name of a method of a type reader.
RTMethodMode
specifies the mode of a method.
OUString getFieldDocumentation(sal_uInt16 index) const
Returns the documentation of a field of this type reader.
void TYPEREG_CALLTYPE typereg_reader_acquire(void *hEntry)
Increments the reference count of a type reader.
void TYPEREG_CALLTYPE typereg_reader_getMethodParameterTypeName(void *hEntry, rtl_uString **pMethodParamType, sal_uInt16 index, sal_uInt16 paramIndex)
Returns the type name of a parameter of a method of a type reader.
sal_uInt16 getSuperTypeCount() const
Returns the number of super types of this type reader.
void TYPEREG_CALLTYPE typereg_reader_getFieldTypeName(void *hEntry, rtl_uString **pFieldType, sal_uInt16 index)
Returns the type name of a field of a type reader.
void TYPEREG_CALLTYPE typereg_reader_getMethodName(void *hEntry, rtl_uString **pMethodName, sal_uInt16 index)
Returns the name of a method of a type reader.
RTFieldAccess getReferenceFlags(sal_uInt16 index) const
Returns the flags of a reference of this type reader.
void TYPEREG_CALLTYPE typereg_reader_getFieldName(void *hEntry, rtl_uString **pFieldName, sal_uInt16 index)
Returns the name of a field of a type reader.
OUString getMethodExceptionTypeName(sal_uInt16 methodIndex, sal_uInt16 exceptionIndex) const
Returns the type name of an exception of a method of this type reader.
typereg_Version TYPEREG_CALLTYPE typereg_reader_getVersion(void const *handle)
Returns the binary blob version of a type reader.
typereg_Version getVersion() const
Returns the binary blob version of this type reader.
RTTypeClass TYPEREG_CALLTYPE typereg_reader_getTypeClass(void *hEntry)
Returns the type class of a type reader.
OUString getFieldFileName(sal_uInt16 index) const
Returns the file name of a field of this type reader.
RTFieldAccess
specifies the type for the field access.
sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getMethodCount(void *hEntry)
Returns the number of methods of a type reader.
RTReferenceType getReferenceSort(sal_uInt16 index) const
Returns the sort of a reference of this type reader.
~Reader()
Destroys this Reader instance.
OUString getMethodReturnTypeName(sal_uInt16 index) const
Returns the return type name of a method of this type reader.
void TYPEREG_CALLTYPE typereg_reader_getDocumentation(void *hEntry, rtl_uString **pDoku)
Returns the documentation of a type reader.
void TYPEREG_CALLTYPE typereg_reader_getMethodExceptionTypeName(void *hEntry, rtl_uString **pMethodExcpType, sal_uInt16 index, sal_uInt16 excIndex)
Returns the type name of an exception of a method of a type reader.
specifies a helper class for const values.