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

RegistryTypeReades reads a binary type blob. More...

#include <reflread.hxx>

Public Member Functions

 RegistryTypeReader (const sal_uInt8 *buffer, sal_uInt32 bufferLen)
 Constructor. More...
 
 ~RegistryTypeReader ()
 Destructor. The Destructor frees the data block if the copyData flag was TRUE. More...
 
RTTypeClass getTypeClass () const
 returns the typeclass of the type represented by this blob. More...
 
OUString getTypeName () const
 returns the full qualified name of the type. More...
 
OUString getSuperTypeName () const
 returns the full qualified name of the supertype. More...
 
sal_uInt32 getFieldCount () const
 returns the number of fields (attributes/properties, enum values or number of constants in a module). More...
 
OUString getFieldName (sal_uInt16 index) const
 returns the name of the field specified by index. More...
 
OUString getFieldType (sal_uInt16 index) const
 returns the full qualified name of the field specified by index. More...
 
RTFieldAccess getFieldAccess (sal_uInt16 index) const
 returns the access mode of the field specified by index. More...
 
RTConstValue getFieldConstValue (sal_uInt16 index) const
 returns the value of the field specified by index. More...
 
OUString getFieldDoku (sal_uInt16 index) const
 returns the documentation string for the field specified by index. More...
 
OUString getFieldFileName (sal_uInt16 index) const
 returns the IDL filename of the field specified by index. More...
 

Private Member Functions

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

Private Attributes

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

Detailed Description

RegistryTypeReades reads a binary type blob.

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

Deprecated:
use typereg::Reader instead

Definition at line 37 of file reflread.hxx.

Constructor & Destructor Documentation

RegistryTypeReader::RegistryTypeReader ( const sal_uInt8 buffer,
sal_uInt32  bufferLen 
)

Constructor.

Parameters
bufferpoints to the binary data block.
bufferLenspecifies the size of the binary data block.

Definition at line 1692 of file reflread.cxx.

References createEntry(), and m_hImpl.

RegistryTypeReader::~RegistryTypeReader ( )

Destructor. The Destructor frees the data block if the copyData flag was TRUE.

Definition at line 1699 of file reflread.cxx.

References m_hImpl, and typereg_reader_release().

RegistryTypeReader::RegistryTypeReader ( RegistryTypeReader const &  )
privatedelete

Member Function Documentation

RTFieldAccess RegistryTypeReader::getFieldAccess ( sal_uInt16  index) const

returns the access mode of the field specified by index.

Definition at line 1736 of file reflread.cxx.

References m_hImpl, and typereg_reader_getFieldFlags().

Referenced by ORegistry::mergeModuleValue().

RTConstValue RegistryTypeReader::getFieldConstValue ( sal_uInt16  index) const

returns the value of the field specified by index.

This function returns the value of an enum value or of a constant.

Definition at line 1739 of file reflread.cxx.

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

Referenced by ORegistry::mergeModuleValue().

sal_uInt32 RegistryTypeReader::getFieldCount ( ) const

returns the number of fields (attributes/properties, enum values or number of constants in a module).

Definition at line 1719 of file reflread.cxx.

References getFieldCount(), and m_hImpl.

Referenced by ORegistry::checkBlop(), checkTypeReaders(), and ORegistry::mergeModuleValue().

OUString RegistryTypeReader::getFieldDoku ( sal_uInt16  index) const

returns the documentation string for the field specified by index.

Each field of a type can have their own documentation.

Definition at line 1746 of file reflread.cxx.

References m_hImpl, and typereg_reader_getFieldDocumentation().

Referenced by ORegistry::mergeModuleValue().

OUString RegistryTypeReader::getFieldFileName ( sal_uInt16  index) const

returns the IDL filename of the field specified by index.

The IDL filename of a field can differ from the filename of the ype itself because modules and also constants can be defined in different IDL files.

Definition at line 1753 of file reflread.cxx.

References m_hImpl, and typereg_reader_getFieldFileName().

Referenced by ORegistry::mergeModuleValue().

OUString RegistryTypeReader::getFieldName ( sal_uInt16  index) const

returns the name of the field specified by index.

Definition at line 1722 of file reflread.cxx.

References m_hImpl, and typereg_reader_getFieldName().

Referenced by checkTypeReaders(), and ORegistry::mergeModuleValue().

OUString RegistryTypeReader::getFieldType ( sal_uInt16  index) const

returns the full qualified name of the field specified by index.

Definition at line 1729 of file reflread.cxx.

References m_hImpl, and typereg_reader_getFieldTypeName().

Referenced by ORegistry::mergeModuleValue().

OUString RegistryTypeReader::getSuperTypeName ( ) const

returns the full qualified name of the supertype.

Definition at line 1712 of file reflread.cxx.

References m_hImpl.

Referenced by ORegistry::mergeModuleValue().

RTTypeClass RegistryTypeReader::getTypeClass ( ) const

returns the typeclass of the type represented by this blob.

This function will always return the type class without the internal RT_TYPE_PUBLISHED flag set.

Definition at line 1702 of file reflread.cxx.

References m_hImpl, and typereg_reader_getTypeClass().

Referenced by ORegistry::checkBlop(), and ORegistry::mergeModuleValue().

OUString RegistryTypeReader::getTypeName ( ) const

returns the full qualified name of the type.

Definition at line 1705 of file reflread.cxx.

References m_hImpl, and typereg_reader_getTypeName().

Referenced by ORegistry::mergeModuleValue().

void RegistryTypeReader::operator= ( RegistryTypeReader const &  )
privatedelete

Member Data Documentation

TypeReaderImpl RegistryTypeReader::m_hImpl
private

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