CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
publish::Setting< T > Class Template Reference

#include <settings.h>

Inheritance diagram for publish::Setting< T >:
Collaboration diagram for publish::Setting< T >:

Public Member Functions

 Setting ()
 
 Setting (const T &v)
 
Settingoperator= (const T &v)
 
const T & operator() () const
 
bool SetIfDefault (const T &v)
 
bool is_default () const
 
T * GetPtr ()
 

Private Attributes

value_
 
bool is_default_
 

Detailed Description

template<class T>
class publish::Setting< T >

Allows for settings that remember whether they have been explicitly overwritten. Otherwise, default values can be changed to upstream repository settings.

Definition at line 29 of file settings.h.

Constructor & Destructor Documentation

template<class T>
publish::Setting< T >::Setting ( )
inline

Definition at line 31 of file settings.h.

template<class T>
publish::Setting< T >::Setting ( const T &  v)
inlineexplicit

Definition at line 32 of file settings.h.

Member Function Documentation

template<class T>
T* publish::Setting< T >::GetPtr ( )
inline

Definition at line 53 of file settings.h.

Referenced by publish::SettingsPublisher::SetOwner().

Here is the caller graph for this function:

template<class T>
bool publish::Setting< T >::is_default ( ) const
inline

Definition at line 51 of file settings.h.

Referenced by publish::SettingsTransaction::GetTimeoutS().

Here is the caller graph for this function:

template<class T>
const T& publish::Setting< T >::operator() ( ) const
inline

Definition at line 40 of file settings.h.

template<class T>
Setting& publish::Setting< T >::operator= ( const T &  v)
inline

Definition at line 34 of file settings.h.

template<class T>
bool publish::Setting< T >::SetIfDefault ( const T &  v)
inline

Definition at line 44 of file settings.h.

Member Data Documentation

template<class T>
bool publish::Setting< T >::is_default_
private

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