Public Member Functions | |
| PropWatchDog (CPageAnnots *annots) | |
| virtual | ~PropWatchDog () 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 property. This observer is registered on page dictionary and if Annots property is a reference also to this property. Any change which leads to change of Annots array (either add, remove or change) is handled here. Note that it doesn't handle array content change.
| pdfobjects::CPageAnnots::PropWatchDog::PropWatchDog | ( | CPageAnnots * | annots | ) | [inline] |
Initialization constructor. Sets annots field according parameter.
| annots | CPageAnnots instance. |
References _annots.
| virtual pdfobjects::CPageAnnots::PropWatchDog::~PropWatchDog | ( | ) | throw () [inline, virtual] |
Empty destructor.
| virtual priority_t pdfobjects::CPageAnnots::PropWatchDog::getPriority | ( | ) | const throw () [inline, virtual] |
| void pdfobjects::CPageAnnots::PropWatchDog::notify | ( | boost::shared_ptr< IProperty > | newValue, | |
| boost::shared_ptr< const IProperty::ObserverContext > | context | |||
| ) | const throw () [virtual] |
Observer handler.
Checks given context type:
In any case:
| 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::isArray(), pdfobjects::isRef(), kernelPrintDbg, REGISTER_SHAREDPTR_OBSERVER, and UNREGISTER_SHAREDPTR_OBSERVER.
Referenced by PropWatchDog().