LibreOffice Module registry (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
RegistryTypeWriter Class Reference

RegistryTypeWriter writes/creates a binary type blob. More...

#include <reflwrit.hxx>

Public Member Functions

 RegistryTypeWriter (RTTypeClass RTTypeClass, const OUString &typeName, const OUString &superTypeName, sal_uInt16 fieldCount)
 Constructor. More...
 
 ~RegistryTypeWriter ()
 Destructor. More...
 
void setFieldData (sal_uInt16 index, const OUString &name, const OUString &typeName, const OUString &doku, const OUString &fileName, RTFieldAccess access, const RTConstValue &constValue)
 sets the data for a field member of a type blob. More...
 
const sal_uInt8getBlop ()
 returns a pointer to the new type blob. More...
 
sal_uInt32 getBlopSize ()
 returns the size of the new type blob in bytes. More...
 

Private Member Functions

 RegistryTypeWriter (RegistryTypeWriter const &)=delete
 
void operator= (RegistryTypeWriter const &)=delete
 

Private Attributes

TypeWriterImpl m_hImpl
 stores the handle of an implementation class More...
 

Detailed Description

RegistryTypeWriter writes/creates a binary type blob.

This class provides the necessary functions to write type information for all kinds of types into a blob.

Deprecated:
use typereg::Writer instead

Definition at line 39 of file reflwrit.hxx.

Constructor & Destructor Documentation

RegistryTypeWriter::RegistryTypeWriter ( RTTypeClass  RTTypeClass,
const OUString &  typeName,
const OUString &  superTypeName,
sal_uInt16  fieldCount 
)

Constructor.

Parameters
RTTypeClassspecifies the type of the new blob.
typeNamespecifies the full qualified type name with '/' as separator.
superTypeNamespecifies the full qualified type name of the base type with '/' as separator.
fieldCountspecifies the number of fields (eg. number of attributes/properties, enum values or constants).

Definition at line 1297 of file reflwrit.cxx.

References createEntry(), and m_hImpl.

RegistryTypeWriter::~RegistryTypeWriter ( )

Destructor.

The Destructor frees the internal data block.

The pointer (returned by getBlop) will be set to NULL.

Definition at line 1309 of file reflwrit.cxx.

References m_hImpl, and release().

RegistryTypeWriter::RegistryTypeWriter ( RegistryTypeWriter const &  )
privatedelete

Member Function Documentation

const sal_uInt8 * RegistryTypeWriter::getBlop ( )

returns a pointer to the new type blob.

The pointer will be invalid (NULL) if the instance of the RegistryTypeWriter will be destroyed.

Definition at line 1325 of file reflwrit.cxx.

References getBlop(), and m_hImpl.

Referenced by ORegistry::mergeModuleValue().

sal_uInt32 RegistryTypeWriter::getBlopSize ( )

returns the size of the new type blob in bytes.

Definition at line 1330 of file reflwrit.cxx.

References getBlopSize(), and m_hImpl.

Referenced by ORegistry::mergeModuleValue().

void RegistryTypeWriter::operator= ( RegistryTypeWriter const &  )
privatedelete
void RegistryTypeWriter::setFieldData ( sal_uInt16  index,
const OUString &  name,
const OUString &  typeName,
const OUString &  doku,
const OUString &  fileName,
RTFieldAccess  access,
const RTConstValue constValue 
)

sets the data for a field member of a type blob.

Parameters
indexindicates the index of the field.
namespecifies the name.
typeNamespecifies the full qualified typename.
dokuspecifies the documentation string of the field.
fileNamespecifies the name of the IDL file where the field is defined.
accessspecifies the access mode of the field.
constValuespecifies the value of the field. The value is only interesting for enum values or constants.

Definition at line 1314 of file reflwrit.cxx.

References m_hImpl, RTConstValue::m_type, and RTConstValue::m_value.

Referenced by ORegistry::mergeModuleValue().

Member Data Documentation

TypeWriterImpl RegistryTypeWriter::m_hImpl
private

stores the handle of an implementation class

Definition at line 98 of file reflwrit.hxx.

Referenced by getBlop(), getBlopSize(), RegistryTypeWriter(), setFieldData(), and ~RegistryTypeWriter().


The documentation for this class was generated from the following files: