LibreOffice Module xmloff (master) 1
Public Member Functions | Private Attributes | List of all members
SvXMLEnumStringMapEntry< EnumT > Struct Template Reference

Map a const char* (with length) to a sal_uInt16 value. More...

#include <xmlement.hxx>

Public Member Functions

 SvXMLEnumStringMapEntry (const char *pName_, sal_Int32 nNameLength_, EnumT nValue_)
 
const char * GetName () const
 
sal_Int32 GetNameLength () const
 
EnumT GetValue () const
 

Private Attributes

const char * pName
 
sal_Int32 nNameLength
 
sal_uInt16 nValue
 

Detailed Description

template<typename EnumT>
struct SvXMLEnumStringMapEntry< EnumT >

Map a const char* (with length) to a sal_uInt16 value.

To be used with SvXMLUnitConverter::convertEnum(...)

Definition at line 70 of file xmlement.hxx.

Constructor & Destructor Documentation

◆ SvXMLEnumStringMapEntry()

template<typename EnumT >
SvXMLEnumStringMapEntry< EnumT >::SvXMLEnumStringMapEntry ( const char *  pName_,
sal_Int32  nNameLength_,
EnumT  nValue_ 
)
inline

Definition at line 77 of file xmlement.hxx.

Member Function Documentation

◆ GetName()

template<typename EnumT >
const char * SvXMLEnumStringMapEntry< EnumT >::GetName ( ) const
inline

Definition at line 79 of file xmlement.hxx.

References SvXMLEnumStringMapEntry< EnumT >::pName.

Referenced by SvXMLUnitConverter::convertEnumImpl().

◆ GetNameLength()

template<typename EnumT >
sal_Int32 SvXMLEnumStringMapEntry< EnumT >::GetNameLength ( ) const
inline

◆ GetValue()

template<typename EnumT >
EnumT SvXMLEnumStringMapEntry< EnumT >::GetValue ( ) const
inline

Member Data Documentation

◆ nNameLength

template<typename EnumT >
sal_Int32 SvXMLEnumStringMapEntry< EnumT >::nNameLength
private

Definition at line 74 of file xmlement.hxx.

Referenced by SvXMLEnumStringMapEntry< EnumT >::GetNameLength().

◆ nValue

template<typename EnumT >
sal_uInt16 SvXMLEnumStringMapEntry< EnumT >::nValue
private

Definition at line 75 of file xmlement.hxx.

Referenced by SvXMLEnumStringMapEntry< EnumT >::GetValue().

◆ pName

template<typename EnumT >
const char* SvXMLEnumStringMapEntry< EnumT >::pName
private

Definition at line 73 of file xmlement.hxx.

Referenced by SvXMLEnumStringMapEntry< EnumT >::GetName().


The documentation for this struct was generated from the following file: