LibreOffice Module registry (master) 1
Macros | Enumerations | Functions | Variables
reflcnst.hxx File Reference
#include <registry/types.hxx>
#include <string.h>
Include dependency graph for reflcnst.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define REGTYPE_IEEE_NATIVE   1
 
#define OFFSET_MAGIC   0
 
#define OFFSET_SIZE   static_cast<sal_uInt32>(OFFSET_MAGIC + sizeof(magic))
 
#define OFFSET_MINOR_VERSION   static_cast<sal_uInt32>(OFFSET_SIZE + sizeof(sal_uInt32))
 
#define OFFSET_MAJOR_VERSION   static_cast<sal_uInt32>(OFFSET_MINOR_VERSION + sizeof(minorVersion))
 
#define OFFSET_N_ENTRIES   static_cast<sal_uInt32>(OFFSET_MAJOR_VERSION + sizeof(majorVersion))
 
#define OFFSET_TYPE_SOURCE   static_cast<sal_uInt32>(OFFSET_N_ENTRIES + sizeof(sal_uInt16))
 
#define OFFSET_TYPE_CLASS   static_cast<sal_uInt32>(OFFSET_TYPE_SOURCE + sizeof(sal_uInt16))
 
#define OFFSET_THIS_TYPE   static_cast<sal_uInt32>(OFFSET_TYPE_CLASS + sizeof(sal_uInt16))
 
#define OFFSET_UIK   static_cast<sal_uInt32>(OFFSET_THIS_TYPE + sizeof(sal_uInt16))
 
#define OFFSET_DOKU   static_cast<sal_uInt32>(OFFSET_UIK + sizeof(sal_uInt16))
 
#define OFFSET_FILENAME   static_cast<sal_uInt32>(OFFSET_DOKU + sizeof(sal_uInt16))
 
#define OFFSET_N_SUPERTYPES   static_cast<sal_uInt32>(OFFSET_FILENAME + sizeof(sal_uInt16))
 
#define OFFSET_SUPERTYPES   static_cast<sal_uInt32>(OFFSET_N_SUPERTYPES + sizeof(sal_uInt16))
 
#define OFFSET_CP_SIZE   static_cast<sal_uInt32>(OFFSET_SUPERTYPES + sizeof(sal_uInt16))
 
#define OFFSET_CP   static_cast<sal_uInt32>(OFFSET_CP_SIZE + sizeof(sal_uInt16))
 
#define CP_OFFSET_ENTRY_SIZE   0
 
#define CP_OFFSET_ENTRY_TAG   static_cast<sal_uInt32>(CP_OFFSET_ENTRY_SIZE + sizeof(sal_uInt32))
 
#define CP_OFFSET_ENTRY_DATA   static_cast<sal_uInt32>(CP_OFFSET_ENTRY_TAG + sizeof(sal_uInt16))
 
#define FIELD_OFFSET_ACCESS   0
 
#define FIELD_OFFSET_NAME   static_cast<sal_uInt32>(FIELD_OFFSET_ACCESS + sizeof(sal_uInt16))
 
#define FIELD_OFFSET_TYPE   static_cast<sal_uInt32>(FIELD_OFFSET_NAME + sizeof(sal_uInt16))
 
#define FIELD_OFFSET_VALUE   static_cast<sal_uInt32>(FIELD_OFFSET_TYPE + sizeof(sal_uInt16))
 
#define FIELD_OFFSET_DOKU   static_cast<sal_uInt32>(FIELD_OFFSET_VALUE + sizeof(sal_uInt16))
 
#define FIELD_OFFSET_FILENAME   static_cast<sal_uInt32>(FIELD_OFFSET_DOKU + sizeof(sal_uInt16))
 
#define PARAM_OFFSET_TYPE   0
 
#define PARAM_OFFSET_MODE   static_cast<sal_uInt32>(PARAM_OFFSET_TYPE + sizeof(sal_uInt16))
 
#define PARAM_OFFSET_NAME   static_cast<sal_uInt32>(PARAM_OFFSET_MODE + sizeof(sal_uInt16))
 
#define METHOD_OFFSET_SIZE   0
 
#define METHOD_OFFSET_MODE   static_cast<sal_uInt32>(METHOD_OFFSET_SIZE + sizeof(sal_uInt16))
 
#define METHOD_OFFSET_NAME   static_cast<sal_uInt32>(METHOD_OFFSET_MODE + sizeof(sal_uInt16))
 
#define METHOD_OFFSET_RETURN   static_cast<sal_uInt32>(METHOD_OFFSET_NAME + sizeof(sal_uInt16))
 
#define METHOD_OFFSET_DOKU   static_cast<sal_uInt32>(METHOD_OFFSET_RETURN + sizeof(sal_uInt16))
 
#define METHOD_OFFSET_PARAM_COUNT   static_cast<sal_uInt32>(METHOD_OFFSET_DOKU + sizeof(sal_uInt16))
 
#define REFERENCE_OFFSET_TYPE   0
 
#define REFERENCE_OFFSET_NAME   static_cast<sal_uInt32>(REFERENCE_OFFSET_TYPE + sizeof(sal_uInt16))
 
#define REFERENCE_OFFSET_DOKU   static_cast<sal_uInt32>(REFERENCE_OFFSET_NAME + sizeof(sal_uInt16))
 
#define REFERENCE_OFFSET_ACCESS   static_cast<sal_uInt32>(REFERENCE_OFFSET_DOKU + sizeof(sal_uInt16))
 

Enumerations

enum  CPInfoTag {
  CP_TAG_INVALID = RT_TYPE_NONE ,
  CP_TAG_CONST_BOOL = RT_TYPE_BOOL ,
  CP_TAG_CONST_BYTE = RT_TYPE_BYTE ,
  CP_TAG_CONST_INT16 = RT_TYPE_INT16 ,
  CP_TAG_CONST_UINT16 = RT_TYPE_UINT16 ,
  CP_TAG_CONST_INT32 = RT_TYPE_INT32 ,
  CP_TAG_CONST_UINT32 = RT_TYPE_UINT32 ,
  CP_TAG_CONST_INT64 = RT_TYPE_INT64 ,
  CP_TAG_CONST_UINT64 = RT_TYPE_UINT64 ,
  CP_TAG_CONST_FLOAT = RT_TYPE_FLOAT ,
  CP_TAG_CONST_DOUBLE = RT_TYPE_DOUBLE ,
  CP_TAG_CONST_STRING = RT_TYPE_STRING ,
  CP_TAG_UTF8_NAME
}
 

Functions

sal_uInt32 writeUINT16 (sal_uInt8 *buffer, sal_uInt16 v)
 
sal_uInt32 readUINT16 (const sal_uInt8 *buffer, sal_uInt16 &v)
 
sal_uInt32 writeINT32 (sal_uInt8 *buffer, sal_Int32 v)
 
sal_uInt32 readINT32 (const sal_uInt8 *buffer, sal_Int32 &v)
 
sal_uInt32 writeUINT32 (sal_uInt8 *buffer, sal_uInt32 v)
 
sal_uInt32 readUINT32 (const sal_uInt8 *buffer, sal_uInt32 &v)
 
sal_uInt32 writeUtf8 (sal_uInt8 *buffer, const char *v)
 
sal_uInt32 readUtf8 (const sal_uInt8 *buffer, char *v, sal_uInt32 maxSize)
 
sal_uInt32 writeString (sal_uInt8 *buffer, const sal_Unicode *v)
 
sal_uInt32 readString (const sal_uInt8 *buffer, sal_Unicode *v, sal_uInt32 maxSize)
 
sal_uInt32 UINT16StringLen (const sal_uInt8 *wstring)
 

Variables

const sal_uInt32 magic
 
const sal_uInt16 minorVersion
 
const sal_uInt16 majorVersion
 

Macro Definition Documentation

◆ CP_OFFSET_ENTRY_DATA

#define CP_OFFSET_ENTRY_DATA   static_cast<sal_uInt32>(CP_OFFSET_ENTRY_TAG + sizeof(sal_uInt16))

Definition at line 53 of file reflcnst.hxx.

◆ CP_OFFSET_ENTRY_SIZE

#define CP_OFFSET_ENTRY_SIZE   0

Definition at line 51 of file reflcnst.hxx.

◆ CP_OFFSET_ENTRY_TAG

#define CP_OFFSET_ENTRY_TAG   static_cast<sal_uInt32>(CP_OFFSET_ENTRY_SIZE + sizeof(sal_uInt32))

Definition at line 52 of file reflcnst.hxx.

◆ FIELD_OFFSET_ACCESS

#define FIELD_OFFSET_ACCESS   0

Definition at line 55 of file reflcnst.hxx.

◆ FIELD_OFFSET_DOKU

#define FIELD_OFFSET_DOKU   static_cast<sal_uInt32>(FIELD_OFFSET_VALUE + sizeof(sal_uInt16))

Definition at line 59 of file reflcnst.hxx.

◆ FIELD_OFFSET_FILENAME

#define FIELD_OFFSET_FILENAME   static_cast<sal_uInt32>(FIELD_OFFSET_DOKU + sizeof(sal_uInt16))

Definition at line 60 of file reflcnst.hxx.

◆ FIELD_OFFSET_NAME

#define FIELD_OFFSET_NAME   static_cast<sal_uInt32>(FIELD_OFFSET_ACCESS + sizeof(sal_uInt16))

Definition at line 56 of file reflcnst.hxx.

◆ FIELD_OFFSET_TYPE

#define FIELD_OFFSET_TYPE   static_cast<sal_uInt32>(FIELD_OFFSET_NAME + sizeof(sal_uInt16))

Definition at line 57 of file reflcnst.hxx.

◆ FIELD_OFFSET_VALUE

#define FIELD_OFFSET_VALUE   static_cast<sal_uInt32>(FIELD_OFFSET_TYPE + sizeof(sal_uInt16))

Definition at line 58 of file reflcnst.hxx.

◆ METHOD_OFFSET_DOKU

#define METHOD_OFFSET_DOKU   static_cast<sal_uInt32>(METHOD_OFFSET_RETURN + sizeof(sal_uInt16))

Definition at line 70 of file reflcnst.hxx.

◆ METHOD_OFFSET_MODE

#define METHOD_OFFSET_MODE   static_cast<sal_uInt32>(METHOD_OFFSET_SIZE + sizeof(sal_uInt16))

Definition at line 67 of file reflcnst.hxx.

◆ METHOD_OFFSET_NAME

#define METHOD_OFFSET_NAME   static_cast<sal_uInt32>(METHOD_OFFSET_MODE + sizeof(sal_uInt16))

Definition at line 68 of file reflcnst.hxx.

◆ METHOD_OFFSET_PARAM_COUNT

#define METHOD_OFFSET_PARAM_COUNT   static_cast<sal_uInt32>(METHOD_OFFSET_DOKU + sizeof(sal_uInt16))

Definition at line 71 of file reflcnst.hxx.

◆ METHOD_OFFSET_RETURN

#define METHOD_OFFSET_RETURN   static_cast<sal_uInt32>(METHOD_OFFSET_NAME + sizeof(sal_uInt16))

Definition at line 69 of file reflcnst.hxx.

◆ METHOD_OFFSET_SIZE

#define METHOD_OFFSET_SIZE   0

Definition at line 66 of file reflcnst.hxx.

◆ OFFSET_CP

#define OFFSET_CP   static_cast<sal_uInt32>(OFFSET_CP_SIZE + sizeof(sal_uInt16))

Definition at line 49 of file reflcnst.hxx.

◆ OFFSET_CP_SIZE

#define OFFSET_CP_SIZE   static_cast<sal_uInt32>(OFFSET_SUPERTYPES + sizeof(sal_uInt16))

Definition at line 48 of file reflcnst.hxx.

◆ OFFSET_DOKU

#define OFFSET_DOKU   static_cast<sal_uInt32>(OFFSET_UIK + sizeof(sal_uInt16))

Definition at line 42 of file reflcnst.hxx.

◆ OFFSET_FILENAME

#define OFFSET_FILENAME   static_cast<sal_uInt32>(OFFSET_DOKU + sizeof(sal_uInt16))

Definition at line 43 of file reflcnst.hxx.

◆ OFFSET_MAGIC

#define OFFSET_MAGIC   0

Definition at line 33 of file reflcnst.hxx.

◆ OFFSET_MAJOR_VERSION

#define OFFSET_MAJOR_VERSION   static_cast<sal_uInt32>(OFFSET_MINOR_VERSION + sizeof(minorVersion))

Definition at line 36 of file reflcnst.hxx.

◆ OFFSET_MINOR_VERSION

#define OFFSET_MINOR_VERSION   static_cast<sal_uInt32>(OFFSET_SIZE + sizeof(sal_uInt32))

Definition at line 35 of file reflcnst.hxx.

◆ OFFSET_N_ENTRIES

#define OFFSET_N_ENTRIES   static_cast<sal_uInt32>(OFFSET_MAJOR_VERSION + sizeof(majorVersion))

Definition at line 37 of file reflcnst.hxx.

◆ OFFSET_N_SUPERTYPES

#define OFFSET_N_SUPERTYPES   static_cast<sal_uInt32>(OFFSET_FILENAME + sizeof(sal_uInt16))

Definition at line 45 of file reflcnst.hxx.

◆ OFFSET_SIZE

#define OFFSET_SIZE   static_cast<sal_uInt32>(OFFSET_MAGIC + sizeof(magic))

Definition at line 34 of file reflcnst.hxx.

◆ OFFSET_SUPERTYPES

#define OFFSET_SUPERTYPES   static_cast<sal_uInt32>(OFFSET_N_SUPERTYPES + sizeof(sal_uInt16))

Definition at line 46 of file reflcnst.hxx.

◆ OFFSET_THIS_TYPE

#define OFFSET_THIS_TYPE   static_cast<sal_uInt32>(OFFSET_TYPE_CLASS + sizeof(sal_uInt16))

Definition at line 40 of file reflcnst.hxx.

◆ OFFSET_TYPE_CLASS

#define OFFSET_TYPE_CLASS   static_cast<sal_uInt32>(OFFSET_TYPE_SOURCE + sizeof(sal_uInt16))

Definition at line 39 of file reflcnst.hxx.

◆ OFFSET_TYPE_SOURCE

#define OFFSET_TYPE_SOURCE   static_cast<sal_uInt32>(OFFSET_N_ENTRIES + sizeof(sal_uInt16))

Definition at line 38 of file reflcnst.hxx.

◆ OFFSET_UIK

#define OFFSET_UIK   static_cast<sal_uInt32>(OFFSET_THIS_TYPE + sizeof(sal_uInt16))

Definition at line 41 of file reflcnst.hxx.

◆ PARAM_OFFSET_MODE

#define PARAM_OFFSET_MODE   static_cast<sal_uInt32>(PARAM_OFFSET_TYPE + sizeof(sal_uInt16))

Definition at line 63 of file reflcnst.hxx.

◆ PARAM_OFFSET_NAME

#define PARAM_OFFSET_NAME   static_cast<sal_uInt32>(PARAM_OFFSET_MODE + sizeof(sal_uInt16))

Definition at line 64 of file reflcnst.hxx.

◆ PARAM_OFFSET_TYPE

#define PARAM_OFFSET_TYPE   0

Definition at line 62 of file reflcnst.hxx.

◆ REFERENCE_OFFSET_ACCESS

#define REFERENCE_OFFSET_ACCESS   static_cast<sal_uInt32>(REFERENCE_OFFSET_DOKU + sizeof(sal_uInt16))

Definition at line 76 of file reflcnst.hxx.

◆ REFERENCE_OFFSET_DOKU

#define REFERENCE_OFFSET_DOKU   static_cast<sal_uInt32>(REFERENCE_OFFSET_NAME + sizeof(sal_uInt16))

Definition at line 75 of file reflcnst.hxx.

◆ REFERENCE_OFFSET_NAME

#define REFERENCE_OFFSET_NAME   static_cast<sal_uInt32>(REFERENCE_OFFSET_TYPE + sizeof(sal_uInt16))

Definition at line 74 of file reflcnst.hxx.

◆ REFERENCE_OFFSET_TYPE

#define REFERENCE_OFFSET_TYPE   0

Definition at line 73 of file reflcnst.hxx.

◆ REGTYPE_IEEE_NATIVE

#define REGTYPE_IEEE_NATIVE   1

Definition at line 27 of file reflcnst.hxx.

Enumeration Type Documentation

◆ CPInfoTag

enum CPInfoTag
Enumerator
CP_TAG_INVALID 
CP_TAG_CONST_BOOL 
CP_TAG_CONST_BYTE 
CP_TAG_CONST_INT16 
CP_TAG_CONST_UINT16 
CP_TAG_CONST_INT32 
CP_TAG_CONST_UINT32 
CP_TAG_CONST_INT64 
CP_TAG_CONST_UINT64 
CP_TAG_CONST_FLOAT 
CP_TAG_CONST_DOUBLE 
CP_TAG_CONST_STRING 
CP_TAG_UTF8_NAME 

Definition at line 78 of file reflcnst.hxx.

Function Documentation

◆ readINT32()

sal_uInt32 readINT32 ( const sal_uInt8 buffer,
sal_Int32 &  v 
)
inline

Definition at line 124 of file reflcnst.hxx.

References v.

Referenced by ORegistry::dumpValue(), ORegKey::getLongListValue(), and ORegKey::getValue().

◆ readString()

sal_uInt32 readString ( const sal_uInt8 buffer,
sal_Unicode v,
sal_uInt32  maxSize 
)

Definition at line 54 of file reflwrit.cxx.

References i, readUINT16(), UINT16StringLen(), and v.

Referenced by ORegistry::dumpValue(), ORegKey::getUnicodeListValue(), and ORegKey::getValue().

◆ readUINT16()

sal_uInt32 readUINT16 ( const sal_uInt8 buffer,
sal_uInt16 &  v 
)
inline

Definition at line 103 of file reflcnst.hxx.

References v.

Referenced by readString().

◆ readUINT32()

sal_uInt32 readUINT32 ( const sal_uInt8 buffer,
sal_uInt32 &  v 
)
inline

◆ readUtf8()

sal_uInt32 readUtf8 ( const sal_uInt8 buffer,
char *  v,
sal_uInt32  maxSize 
)
inline

Definition at line 168 of file reflcnst.hxx.

References size, and v.

Referenced by ORegistry::dumpValue(), ORegKey::getStringListValue(), and ORegKey::getValue().

◆ UINT16StringLen()

sal_uInt32 UINT16StringLen ( const sal_uInt8 wstring)

Definition at line 29 of file reflwrit.cxx.

Referenced by readString().

◆ writeINT32()

sal_uInt32 writeINT32 ( sal_uInt8 buffer,
sal_Int32  v 
)
inline

Definition at line 114 of file reflcnst.hxx.

References v.

Referenced by ORegKey::setLongListValue(), and ORegKey::setValue().

◆ writeString()

sal_uInt32 writeString ( sal_uInt8 buffer,
const sal_Unicode v 
)

Definition at line 40 of file reflwrit.cxx.

References i, v, and writeUINT16().

Referenced by ORegKey::setUnicodeListValue(), and ORegKey::setValue().

◆ writeUINT16()

sal_uInt32 writeUINT16 ( sal_uInt8 buffer,
sal_uInt16  v 
)
inline

Definition at line 95 of file reflcnst.hxx.

References v.

Referenced by writeString().

◆ writeUINT32()

sal_uInt32 writeUINT32 ( sal_uInt8 buffer,
sal_uInt32  v 
)
inline

◆ writeUtf8()

sal_uInt32 writeUtf8 ( sal_uInt8 buffer,
const char *  v 
)
inline

Definition at line 159 of file reflcnst.hxx.

References size, and v.

Referenced by ORegKey::setStringListValue(), and ORegKey::setValue().

Variable Documentation

◆ magic

const sal_uInt32 magic
extern

Definition at line 43 of file reflread.cxx.

◆ majorVersion

const sal_uInt16 majorVersion
extern

Definition at line 45 of file reflread.cxx.

◆ minorVersion

const sal_uInt16 minorVersion
extern

Definition at line 44 of file reflread.cxx.