LibreOffice Module xmloff (master) 1
Public Member Functions | Private Attributes | List of all members
PropertyWrapper< T > Class Template Reference

@descr For every property type there will be one instantiation of this template class with its own and type specific version of SetValue. More...

#include <MultiPropertySetHandler.hxx>

Inheritance diagram for PropertyWrapper< T >:
[legend]
Collaboration diagram for PropertyWrapper< T >:
[legend]

Public Member Functions

 PropertyWrapper (const OUString &rName, T &rValue)
 @descr Create a wrapper for a property of type T. More...
 
virtual void SetValue (const css::uno::Any &rValue) override
 descr Set the given value inside an Any to the variable referenced by the data member. More...
 
- Public Member Functions inherited from PropertyWrapperBase
 PropertyWrapperBase (OUString aName)
 @descr Create a class instance and store the given name. More...
 
virtual ~PropertyWrapperBase ()
 
virtual void SetValue (const css::uno::Any &rValue)=0
 @descr Abstract interface of a method for setting a variables value to that of the property. More...
 

Private Attributes

T & mrValue
 Reference to a variable. Its value can be modified by a call to SetValue. More...
 

Additional Inherited Members

- Public Attributes inherited from PropertyWrapperBase
const OUString msName
 

Detailed Description

template<class T>
class PropertyWrapper< T >

@descr For every property type there will be one instantiation of this template class with its own and type specific version of SetValue.

Definition at line 69 of file MultiPropertySetHandler.hxx.

Constructor & Destructor Documentation

◆ PropertyWrapper()

template<class T >
PropertyWrapper< T >::PropertyWrapper ( const OUString &  rName,
T &  rValue 
)
inline

@descr Create a wrapper for a property of type T.

Definition at line 74 of file MultiPropertySetHandler.hxx.

Member Function Documentation

◆ SetValue()

template<class T >
virtual void PropertyWrapper< T >::SetValue ( const css::uno::Any &  rValue)
inlineoverridevirtual

descr Set the given value inside an Any to the variable referenced by the data member.

Implements PropertyWrapperBase.

Definition at line 82 of file MultiPropertySetHandler.hxx.

References PropertyWrapper< T >::mrValue.

Member Data Documentation

◆ mrValue

template<class T >
T& PropertyWrapper< T >::mrValue
private

Reference to a variable. Its value can be modified by a call to SetValue.

Definition at line 89 of file MultiPropertySetHandler.hxx.

Referenced by PropertyWrapper< T >::SetValue().


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