LibreOffice Module comphelper (master)  1
Static Public Member Functions | Private Member Functions | List of all members
comphelper::ConfigurationProperty< T, U > Struct Template Reference

A type-safe wrapper around a (non-localized) configuration property. More...

#include <configuration.hxx>

Static Public Member Functions

static bool isReadOnly (css::uno::Reference< css::uno::XComponentContext > const &context=comphelper::getProcessComponentContext())
 Get the read-only status of the given (non-localized) configuration property. More...
 
static U get (css::uno::Reference< css::uno::XComponentContext > const &context=comphelper::getProcessComponentContext())
 Get the value of the given (non-localized) configuration property. More...
 
static void set (U const &value, std::shared_ptr< ConfigurationChanges > const &batch)
 Set the value of the given (non-localized) configuration property, via a given changes batch. More...
 

Private Member Functions

 ConfigurationProperty (const ConfigurationProperty &)=delete
 
ConfigurationPropertyoperator= (const ConfigurationProperty &)=delete
 
 ConfigurationProperty ()=delete
 
 ~ConfigurationProperty ()=delete
 

Detailed Description

template<typename T, typename U>
struct comphelper::ConfigurationProperty< T, U >

A type-safe wrapper around a (non-localized) configuration property.

Automatically generated headers for the various configuration properties derive from this template and make available its member functions to access each given configuration property.

Definition at line 190 of file configuration.hxx.

Constructor & Destructor Documentation

template<typename T , typename U >
comphelper::ConfigurationProperty< T, U >::ConfigurationProperty ( const ConfigurationProperty< T, U > &  )
privatedelete
template<typename T , typename U >
comphelper::ConfigurationProperty< T, U >::ConfigurationProperty ( )
privatedelete
template<typename T , typename U >
comphelper::ConfigurationProperty< T, U >::~ConfigurationProperty ( )
privatedelete

Member Function Documentation

template<typename T , typename U >
static U comphelper::ConfigurationProperty< T, U >::get ( css::uno::Reference< css::uno::XComponentContext > const &  context = comphelper::getProcessComponentContext())
inlinestatic

Get the value of the given (non-localized) configuration property.

For nillable properties, U is of type boost::optional<U'>.

Definition at line 204 of file configuration.hxx.

References comphelper::detail::Convert< T >::fromAny(), comphelper::detail::ConfigurationWrapper::get(), and getPropertyValue().

template<typename T , typename U >
static bool comphelper::ConfigurationProperty< T, U >::isReadOnly ( css::uno::Reference< css::uno::XComponentContext > const &  context = comphelper::getProcessComponentContext())
inlinestatic

Get the read-only status of the given (non-localized) configuration property.

Definition at line 194 of file configuration.hxx.

References comphelper::detail::ConfigurationWrapper::get(), and comphelper::detail::ConfigurationWrapper::isReadOnly().

template<typename T , typename U >
ConfigurationProperty& comphelper::ConfigurationProperty< T, U >::operator= ( const ConfigurationProperty< T, U > &  )
privatedelete
template<typename T , typename U >
static void comphelper::ConfigurationProperty< T, U >::set ( U const &  value,
std::shared_ptr< ConfigurationChanges > const &  batch 
)
inlinestatic

Set the value of the given (non-localized) configuration property, via a given changes batch.

For nillable properties, U is of type boost::optional<U'>.

Definition at line 220 of file configuration.hxx.

References comphelper::detail::ConfigurationWrapper::setPropertyValue().


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