20 #ifndef INCLUDED_REGISTRY_WRITER_HXX
21 #define INCLUDED_REGISTRY_WRITER_HXX
28 #include <rtl/ustring.hxx>
74 OUString
const & fileName,
RTTypeClass typeClass,
bool published,
75 OUString
const & typeName, sal_uInt16 superTypeCount,
76 sal_uInt16 fieldCount, sal_uInt16 methodCount,
77 sal_uInt16 referenceCount):
80 version, documentation.
pData, fileName.
pData, typeClass,
81 published, typeName.
pData, superTypeCount, fieldCount,
82 methodCount, referenceCount))
85 throw std::bad_alloc();
108 throw std::bad_alloc();
132 sal_uInt16 index, OUString
const & documentation,
133 OUString
const & fileName,
RTFieldAccess flags, OUString
const & name,
137 m_handle, index, documentation.pData, fileName.pData, flags,
140 throw std::bad_alloc();
164 sal_uInt16 index, OUString
const & documentation,
166 OUString
const & returnTypeName, sal_uInt16 parameterCount,
167 sal_uInt16 exceptionCount)
170 m_handle, index, documentation.pData, flags, name.pData,
171 returnTypeName.pData, parameterCount, exceptionCount))
173 throw std::bad_alloc();
195 sal_uInt16 methodIndex, sal_uInt16 parameterIndex,
197 OUString
const & typeName)
const
200 m_handle, methodIndex, parameterIndex, flags, name.pData,
203 throw std::bad_alloc();
221 sal_uInt16 methodIndex, sal_uInt16 exceptionIndex,
222 OUString
const & typeName)
225 m_handle, methodIndex, exceptionIndex, typeName.pData))
227 throw std::bad_alloc();
248 sal_uInt16 index, OUString
const & documentation,
250 OUString
const & typeName)
253 m_handle, index, documentation.pData, sort, flags,
256 throw std::bad_alloc();
275 throw std::bad_alloc();
void setMethodExceptionTypeName(sal_uInt16 methodIndex, sal_uInt16 exceptionIndex, OUString const &typeName)
Sets an exception type name of a method of this type writer.
RTParamMode
specifies the mode of a parameter.
RTReferenceType
specifies the type of a reference used in a service description.
void TYPEREG_CALLTYPE typereg_writer_destroy(void *handle) SAL_THROW_EXTERN_C()
Destroys a type writer.
std::unique_ptr< ContentProperties > pData
RTValueType m_type
stores the type of the constant value.
sal_Bool TYPEREG_CALLTYPE typereg_writer_setFieldData(void *handle, sal_uInt16 index, rtl_uString const *documentation, rtl_uString const *fileName, RTFieldAccess flags, rtl_uString const *name, rtl_uString const *typeName, RTValueType valueType, RTConstValueUnion valueValue) SAL_THROW_EXTERN_C()
Sets the data of a field of a type writer.
sal_Bool TYPEREG_CALLTYPE typereg_writer_setMethodExceptionTypeName(void const *handle, sal_uInt16 methodIndex, sal_uInt16 exceptionIndex, rtl_uString const *typeName) SAL_THROW_EXTERN_C()
Sets an exception type name of a method of a type writer.
void setMethodParameterData(sal_uInt16 methodIndex, sal_uInt16 parameterIndex, RTParamMode flags, OUString const &name, OUString const &typeName) const
Sets the data of a parameter of a method of this type writer.
typereg_Version
The version of a binary blob that represents a UNOIDL type.
RTConstValueUnion m_value
stores the value of the constant.
void setReferenceData(sal_uInt16 index, OUString const &documentation, RTReferenceType sort, RTFieldAccess flags, OUString const &typeName)
Sets the data of a reference of this type writer.
void const *TYPEREG_CALLTYPE typereg_writer_getBlob(void *handle, sal_uInt32 *size) SAL_THROW_EXTERN_C()
Returns the blob of a type writer.
A type writer working on a binary blob that represents a UNOIDL type.
Writer(typereg_Version version, OUString const &documentation, OUString const &fileName, RTTypeClass typeClass, bool published, OUString const &typeName, sal_uInt16 superTypeCount, sal_uInt16 fieldCount, sal_uInt16 methodCount, sal_uInt16 referenceCount)
Creates a type writer.
void setMethodData(sal_uInt16 index, OUString const &documentation, RTMethodMode flags, OUString const &name, OUString const &returnTypeName, sal_uInt16 parameterCount, sal_uInt16 exceptionCount)
Sets the data of a method of this type writer.
RTTypeClass
specifies the typeclass of a binary type blob.
void const * getBlob(sal_uInt32 *size)
Returns the blob of this type writer.
~Writer()
Destroys this Writer instance.
Writer & operator=(Writer const &)=delete
void setSuperTypeName(sal_uInt16 index, OUString const &typeName)
Sets the type name of a super type of this type writer.
void *TYPEREG_CALLTYPE typereg_writer_create(typereg_Version version, rtl_uString const *documentation, rtl_uString const *fileName, RTTypeClass typeClass, sal_Bool published, rtl_uString const *typeName, sal_uInt16 superTypeCount, sal_uInt16 fieldCount, sal_uInt16 methodCount, sal_uInt16 referenceCount) SAL_THROW_EXTERN_C()
Creates a type writer working on a binary blob that represents a UNOIDL type.
sal_Bool TYPEREG_CALLTYPE typereg_writer_setReferenceData(void *handle, sal_uInt16 index, rtl_uString const *documentation, RTReferenceType sort, RTFieldAccess flags, rtl_uString const *typeName) SAL_THROW_EXTERN_C()
Sets the data of a reference of a type writer.
RTMethodMode
specifies the mode of a method.
sal_Bool TYPEREG_CALLTYPE typereg_writer_setSuperTypeName(void const *handle, sal_uInt16 index, rtl_uString const *typeName) SAL_THROW_EXTERN_C()
Sets the type name of a super type of a type writer.
sal_Bool TYPEREG_CALLTYPE typereg_writer_setMethodData(void *handle, sal_uInt16 index, rtl_uString const *documentation, RTMethodMode flags, rtl_uString const *name, rtl_uString const *returnTypeName, sal_uInt16 parameterCount, sal_uInt16 exceptionCount) SAL_THROW_EXTERN_C()
Sets the data of a method of a type writer.
RTFieldAccess
specifies the type for the field access.
void setFieldData(sal_uInt16 index, OUString const &documentation, OUString const &fileName, RTFieldAccess flags, OUString const &name, OUString const &typeName, RTConstValue const &value)
Sets the data of a field of this type writer.
sal_Bool TYPEREG_CALLTYPE typereg_writer_setMethodParameterData(void const *handle, sal_uInt16 methodIndex, sal_uInt16 parameterIndex, RTParamMode flags, rtl_uString const *name, rtl_uString const *typeName) SAL_THROW_EXTERN_C()
Sets the data of a parameter of a method of a type writer.
specifies a helper class for const values.