#include <observer.h>
Public Member Functions | |
| ScopedChangeContext (boost::shared_ptr< S > s) | |
| boost::shared_ptr< S > | getScope () const |
| ChangeContextType | getType () const throw () |
Private Attributes | |
| boost::shared_ptr< S > | scope |
Change context with scope information.
Scope information are specified as template parameter and describes scope of the change. Template T parameter specifies value holder.
Scope can be rather complex information but principally it should contain information which can be used to cathegorize value given in notify method as newValue parameter (e. g. Maximum number of value for progress calculation and newValue contains current state).
| observer::ScopedChangeContext< T, S >::ScopedChangeContext | ( | boost::shared_ptr< S > | s | ) | [inline] |
Initialize constructor.
| s | Scope used for initialization. |
Initializes scope field.
| boost::shared_ptr<S> observer::ScopedChangeContext< T, S >::getScope | ( | ) | const [inline] |
Returns scope.
References observer::ScopedChangeContext< T, S >::scope.
| ChangeContextType observer::ScopedChangeContext< T, S >::getType | ( | ) | const throw () [inline, virtual] |
Returns context type.
Implements observer::IChangeContext< T >.
References observer::ScopedChangeContextType.
boost::shared_ptr<S> observer::ScopedChangeContext< T, S >::scope [private] |
Scope holder.
Referenced by observer::ScopedChangeContext< T, S >::getScope().