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

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)
 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 (const OUString &rName)
 Create a class instance and store the given name. More...
 
virtual ~PropertyWrapperBase ()
 

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 >

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 68 of file MultiPropertySetHandler.hxx.

Constructor & Destructor Documentation

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

Create a wrapper for a property of type T.

Definition at line 73 of file MultiPropertySetHandler.hxx.

Member Function Documentation

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 81 of file MultiPropertySetHandler.hxx.

References PropertyWrapper< T >::mrValue.

Member Data Documentation

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 88 of file MultiPropertySetHandler.hxx.

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


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