Public Types | |
| typedef observer::BasicChangeContext < IProperty > | BasicObserverContext |
Public Member Functions | |
| ArrayWatchDog (CPageAnnots *annots) | |
| virtual | ~ArrayWatchDog () throw () |
| virtual void | notify (boost::shared_ptr< IProperty > newValue, boost::shared_ptr< const IProperty::ObserverContext > context) const throw () |
| virtual priority_t | getPriority () const throw () |
Private Attributes | |
| CPageAnnots * | _annots |
Observer for Annots array synchronization. This observer is registered on Annots array property and all its reference typed elements. It handles change in Annots array content - this means either element is added, removed or replaced, or any of its reference elements changes its value.
| typedef observer::BasicChangeContext<IProperty> pdfobjects::CPageAnnots::ArrayWatchDog::BasicObserverContext |
| pdfobjects::CPageAnnots::ArrayWatchDog::ArrayWatchDog | ( | CPageAnnots * | annots | ) | [inline] |
| virtual pdfobjects::CPageAnnots::ArrayWatchDog::~ArrayWatchDog | ( | ) | throw () [inline, virtual] |
Empty destructor.
| virtual priority_t pdfobjects::CPageAnnots::ArrayWatchDog::getPriority | ( | ) | const throw () [inline, virtual] |
Returns observer priority.
Implements observer::IObserver< IProperty >.
| void pdfobjects::CPageAnnots::ArrayWatchDog::notify | ( | boost::shared_ptr< IProperty > | newValue, | |
| boost::shared_ptr< const IProperty::ObserverContext > | context | |||
| ) | const throw () [virtual] |
Observer handler.
Checks given context type:
In both situations calls consolidateAnnotsStorage with original and new value parameters.
| newValue | New value of changed property. | |
| context | Context of the change. |
References observer::BasicChangeContextType, observer::ComplexChangeContextType, debug::DBG_DBG, debug::DBG_INFO, debug::DBG_WARN, pdfobjects::isRef(), kernelPrintDbg, REGISTER_SHAREDPTR_OBSERVER, and UNREGISTER_SHAREDPTR_OBSERVER.
Page owner of this observer.
Referenced by ArrayWatchDog().