OpendTect-6_4  6.4
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
NotifierAccess Class Reference

Interface class for Notifier. See comments there. More...

Inherited by CNotifier< T, C >, CNotifier< Attrib::DescSet, Attrib::DescID >, CNotifier< BaseMapObject, const MouseEvent & >, CNotifier< BaseMapObject, const uiString & >, CNotifier< EM::EMObject, const EM::EMObjectCallbackData & >, CNotifier< FlatView::AuxDataEditor, bool >, CNotifier< Geometry::Element, const TypeSet< GeomPosID > * >, CNotifier< Geometry::RandomLine, const Geometry::RandomLine::ChangeData & >, CNotifier< Geometry::RandomLineManager, int >, CNotifier< MenuHandler, int >, CNotifier< MouseCursorExchange, const MouseCursorExchange::Info & >, CNotifier< Network::RequestConnection, od_int32 >, CNotifier< ui3DViewer, bool >, CNotifier< uiBaseMap, int >, CNotifier< uiCrossAttrEvaluateDlg, int >, CNotifier< uiDataPointSet, int >, CNotifier< uiDataPointSetCrossPlotter, bool >, CNotifier< uiDataPointSetCrossPlotter, Interval< float > >, CNotifier< uiEvaluateDlg, int >, CNotifier< uiGraphicsViewBase, uiSize >, CNotifier< uiListBox, int >, CNotifier< uiObject, uiRect & >, CNotifier< uiODHorizonParentTreeItem, int >, CNotifier< uiODSceneMgr, int >, CNotifier< uiODViewer2DMgr, int >, CNotifier< uiStratLayerModelDisp, IOPar >, CNotifier< uiSynthGenDlg, BufferString >, CNotifier< uiTable, int >, CNotifier< uiTextEditBase, bool >, CNotifier< uiToolBar, int >, CNotifier< uiTreeFactorySet, int >, CNotifier< uiVisDataPointSetDisplayMgr, int >, CNotifier< uiVisPartServer, int >, CNotifier< UserActionHandler, int >, CNotifier< Vel::Picks, const BinID & >, CNotifier< visBase::EventCatcher, const visBase::EventInfo & >, CNotifier< visBase::RandomTrackDragger, int >, CNotifier< visBase::SelectionManager, int >, CNotifier< visBase::ThumbWheel, float >, CNotifier< Vw2DDataManager, int >, CNotifier< Well::Well::Data, int >, Notifier< T >, Notifier< Attrib::Attrib::Processor >, Notifier< BaseMapObject >, Notifier< CmdDrive::CmdDriver >, Notifier< ColTab::MapperSetup >, Notifier< ColTab::SeqMgr >, Notifier< ColTab::Sequence >, Notifier< DataPackMgr >, Notifier< EM::EMManager >, Notifier< EM::Fault3DPainter >, Notifier< EM::FaultStickPainter >, Notifier< EM::HorizonPainter2D >, Notifier< EM::HorizonPainter3D >, Notifier< EM::HorizonZTransform >, Notifier< Executor >, Notifier< FlatView::AuxDataEditor >, Notifier< FlatView::Sower >, Notifier< Geometry::ElementEditor >, Notifier< Geometry::RandomLine >, Notifier< GestureEventHandler >, Notifier< i_QPtrImpl >, Notifier< IOMan >, Notifier< JobRunner >, Notifier< KeyboardEventHandler >, Notifier< MarchingCubesSurface >, Notifier< MarchingCubesSurfaceEditor >, Notifier< MenuHandler >, Notifier< MenuItemHolder >, Notifier< MouseEventHandler >, Notifier< MPE::EMSeedPicker >, Notifier< MPE::Engine >, Notifier< MPE::HorizonFlatViewEditor >, Notifier< MPE::HorizonFlatViewEditor2D >, Notifier< MPE::HorizonFlatViewEditor3D >, Notifier< MPE::HorizonTrackerMgr >, Notifier< MPE::ObjectEditor >, Notifier< MPE::uiCorrelationGroup >, Notifier< MPE::uiEventGroup >, Notifier< MPE::uiHorizonSetupGroup >, Notifier< MPE::uiPreviewGroup >, Notifier< Network::RequestConnection >, Notifier< Network::RequestServer >, Notifier< NotSavedPrompter >, Notifier< OD::PythonAccess >, Notifier< ODGraphicsDynamicImageItem >, Notifier< ODNetworkReply >, Notifier< Pick::SetMgr >, Notifier< PreStack::EventManager >, Notifier< PreStack::ProcessManager >, Notifier< PreStack::uiProcessorManager >, Notifier< PreStack::uiProcSel >, Notifier< PreStackView::uiViewer2DControl >, Notifier< PreStackView::uiViewer2DMainWin >, Notifier< PreStackView::uiViewer2DPosDlg >, Notifier< Seis::PreLoadDataManager >, Notifier< SeisRandomProvider >, Notifier< SeisRandomRepository >, Notifier< SeisSingleTraceProc >, Notifier< Strat::Level >, Notifier< Strat::LevelSet >, Notifier< Strat::LithologySet >, Notifier< Strat::RefTree >, Notifier< Strat::UnitRef >, Notifier< SurveyInfo >, Notifier< TextTranslateMgr >, Notifier< Threads::WorkManager >, Notifier< Timer >, Notifier< ui2DGridLines >, Notifier< ui3DViewer >, Notifier< uiArrowDialog >, Notifier< uiAttribDescSetEd >, Notifier< uiAttrTypeSel >, Notifier< uiBatchJobDispatcherSel >, Notifier< uiBitMapDisplay >, Notifier< uiChangeHorizonDlg >, Notifier< uiCheckedCompoundParSel >, Notifier< uiCheckList >, Notifier< uiColorBarDialog >, Notifier< uiColorInput >, Notifier< uiColorTable >, Notifier< uiColorTableMan >, Notifier< uiColTabMarkerCanvas >, Notifier< uiColTabMarkerDlg >, Notifier< uiComboBox >, Notifier< uiCompoundParSel >, Notifier< uiCreateHorizon >, Notifier< uiCrossAttrEvaluateDlg >, Notifier< uiDataPointSet >, Notifier< uiDataPointSetCrossPlotter >, Notifier< uiDial >, Notifier< uiDialog >, Notifier< uiDirectionalPlot >, Notifier< uiDispEditMarkerDlg >, Notifier< uiEditObjectList >, Notifier< uiEvaluateDlg >, Notifier< uiEventFilter >, Notifier< uiFaultParSel >, Notifier< uiFaultStickTransferDlg >, Notifier< uiFillPattern >, Notifier< uiFlatViewAuxDataEditorList >, Notifier< uiFlatViewColTabEd >, Notifier< uiFlatViewControl >, Notifier< uiFlatViewer >, Notifier< uiFont >, Notifier< uiFreqFilterSelFreq >, Notifier< uiFuncSelDraw >, Notifier< uiFuncTaperDisp >, Notifier< uiFunctionDisplay >, Notifier< uiGenInput >, Notifier< uiGenInputBoolFld >, Notifier< uiGraphicsScene >, Notifier< uiGraphicsViewBase >, Notifier< uiGVFreehandAreaSelectionTool >, Notifier< uiHistogramDisplay >, Notifier< uiHistogramSel >, Notifier< uiHorizonInterpolDlg >, Notifier< uiHorizonShiftDialog >, Notifier< uiImpExpPickSet >, Notifier< uiImportFault >, Notifier< uiImportHorizon >, Notifier< uiImportHorizon2D >, Notifier< uiIOObjInserter >, Notifier< uiIOObjSelGrp >, Notifier< uiIOObjSelWriteTranslator >, Notifier< uiIOObjTranslatorWriteOpts >, Notifier< uiIOSelect >, Notifier< uiIOSurface >, Notifier< uiLineEdit >, Notifier< uiListBox >, Notifier< uiListBoxChoiceIO >, Notifier< uiListBoxFilter >, Notifier< uiMainWin >, Notifier< uiMapperRangeEditor >, Notifier< uiMarkerStyle2D >, Notifier< uiMathExpression >, Notifier< uiMathExpressionVariable >, Notifier< uiMathFormula >, Notifier< uiMdiArea >, Notifier< uiMeasureDlg >, Notifier< uiMultiMapperRangeEditWin >, Notifier< uiMultiSurfaceRead >, Notifier< uiMultiWellSel >, Notifier< uiObject >, Notifier< uiObjectItemView >, Notifier< uiODApplMgr >, Notifier< uiODMain >, Notifier< uiODMenuMgr >, Notifier< uiODSceneMgr >, Notifier< uiODViewer2D >, Notifier< uiODViewer2DPosGrp >, Notifier< uiPolarDiagram >, Notifier< uiPosSubSel >, Notifier< uiPrDenFunVarSel >, Notifier< uiPropertyValFld >, Notifier< uiRayTracer1D >, Notifier< uiRayTracerSel >, Notifier< uiSaveImageDlg >, Notifier< uiSeis2DLineNameSel >, Notifier< uiSeis2DLineSel >, Notifier< uiSeisEventSnapper >, Notifier< uiSeisRandTo2DBase >, Notifier< uiSeisSubSel >, Notifier< uiSeisWaveletSel >, Notifier< uiSeisWvltSliderDlg >, Notifier< uiSelLineStyle >, Notifier< uiSelNrRange >, Notifier< uiSelZRange >, Notifier< uiSGSel >, Notifier< uiSGSelGrp >, Notifier< uiShortcutsMgr >, Notifier< uiSimilarityAttrib::uiSimiSteeringSel >, Notifier< uiSlicePos >, Notifier< uiSlider >, Notifier< uiSpinBox >, Notifier< uiSteeringSel >, Notifier< uiStepOutSel >, Notifier< uiStratGenDescTools >, Notifier< uiStratLayerContent >, Notifier< uiStratLayerModel >, Notifier< uiStratLayerModelDisp >, Notifier< uiStratLayModEditTools >, Notifier< uiStratLevelSel >, Notifier< uiStratSelUnits >, Notifier< uiStratSynthDisp >, Notifier< uiStratTreeToDisp >, Notifier< uiStratViewControl >, Notifier< uiSurveyInfoEditor >, Notifier< uiSynthCorrectionsGrp >, Notifier< uiSynthGenDlg >, Notifier< uiSynthSeisGrp >, Notifier< uiSynthSlicePos >, Notifier< uiSystemTrayIcon >, Notifier< uiTabBar >, Notifier< uiTable >, Notifier< uiTableImpDataSel >, Notifier< uiTextBrowser >, Notifier< uiTextEditBase >, Notifier< uiTextFile >, Notifier< uiToolBar >, Notifier< uiTreeView >, Notifier< uiTreeViewItem >, Notifier< uiUnitSel >, Notifier< uiVarWizard >, Notifier< uiVelSel >, Notifier< uiVisPartServer >, Notifier< uiVisPickRetriever >, Notifier< uiWaveletExtraction >, Notifier< uiWellDisplayControl >, Notifier< uiWellDispPropDlg >, Notifier< uiWellDispProperties >, Notifier< uiWellImportAsc >, Notifier< uiWellLogDispDlg >, Notifier< uiWellLogEditor >, Notifier< uiWellMarkerSel >, Notifier< uiWellParSel >, Notifier< uiWellPartServer >, Notifier< uiWellPropSel >, Notifier< uiWellSinglePropSel >, Notifier< uiWellTo2DLineDlg >, Notifier< Undo >, Notifier< UserAction >, Notifier< UserActionHandler >, Notifier< Vel::GriddedSource >, Notifier< Vel::uiFunctionSel >, Notifier< visBase::BoxDragger >, Notifier< visBase::Camera >, Notifier< visBase::Coordinates >, Notifier< visBase::DataManager >, Notifier< visBase::DataObjectGroup >, Notifier< visBase::DepthTabPlaneDragger >, Notifier< visBase::Dragger >, Notifier< visBase::DraggerBase >, Notifier< visBase::FlatViewer >, Notifier< visBase::Material >, Notifier< visBase::OrthogonalSlice >, Notifier< visBase::RandomTrackDragger >, Notifier< visBase::Scene >, Notifier< visBase::VisualObject >, Notifier< visSurvey::EMObjectDisplay >, Notifier< visSurvey::FaultDisplay >, Notifier< visSurvey::FaultStickSetDisplay >, Notifier< visSurvey::ImageDisplay >, Notifier< visSurvey::LocationDisplay >, Notifier< visSurvey::MPEClickCatcher >, Notifier< visSurvey::MPEDisplay >, Notifier< visSurvey::MPEEditor >, Notifier< visSurvey::PlaneDataDisplay >, Notifier< visSurvey::PreStackDisplay >, Notifier< visSurvey::RandomTrackDisplay >, Notifier< visSurvey::Scene >, Notifier< visSurvey::SceneTransformManager >, Notifier< visSurvey::Seis2DDisplay >, Notifier< visSurvey::Sower >, Notifier< visSurvey::VolumeDisplay >, Notifier< visSurvey::WellDisplay >, Notifier< Vw2DDataManager >, Notifier< VW2DFault >, Notifier< VW2DFaultSS2D >, Notifier< VW2DFaultSS3D >, Notifier< Vw2DHorizon2D >, Notifier< Vw2DHorizon3D >, Notifier< VW2DPickSet >, Notifier< VW2DSeis >, Notifier< Well::Well::Data >, Notifier< WellTie::PickSetMgr >, Notifier< WellTie::uiControlView >, Notifier< WellTie::uiInfoDlg >, Notifier< WellTie::uiTieView >, Notifier< WellTie::uiWavelet >, Notifier< WellTie::uiWaveletView >, and Notifier< WellTie::WellDataMgr >.

Public Member Functions

 NotifierAccess (const NotifierAccess &)
 
 NotifierAccess ()
 
virtual ~NotifierAccess ()
 
void notify (const CallBack &, bool first=false)
 
bool notifyIfNotNotified (const CallBack &)
 
void remove (const CallBack &)
 
bool removeWith (CallBacker *, bool wait=true)
 
bool isEnabled () const
 
bool enable (bool yn=true)
 
bool disable ()
 
bool isEmpty () const
 
bool willCall (CallBacker *) const
 
bool isShutdownSubscribed (CallBacker *) const
 Only for debugging purposes, don't use. More...
 

Public Attributes

CallBackSetcbs_
 
CallBackercber_
 

Protected Member Functions

void addShutdownSubscription (CallBacker *)
 
bool removeShutdownSubscription (CallBacker *, bool wait)
 

Static Protected Member Functions

static void doTrigger (CallBackSet &, CallBacker *c, CallBacker *exclude)
 

Protected Attributes

ObjectSet< CallBackershutdownsubscribers_
 
Threads::Lock shutdownsubscriberlock_
 

Friends

class NotifyStopper
 
class CallBacker
 

Detailed Description

Interface class for Notifier. See comments there.

Constructor & Destructor Documentation

NotifierAccess::NotifierAccess ( const NotifierAccess )
NotifierAccess::NotifierAccess ( )
virtual NotifierAccess::~NotifierAccess ( )
virtual

Member Function Documentation

void NotifierAccess::addShutdownSubscription ( CallBacker )
protected
bool NotifierAccess::disable ( )
inline
static void NotifierAccess::doTrigger ( CallBackSet ,
CallBacker c,
CallBacker exclude 
)
staticprotected
bool NotifierAccess::enable ( bool  yn = true)
inline
bool NotifierAccess::isEmpty ( ) const
inline
bool NotifierAccess::isEnabled ( ) const
inline
bool NotifierAccess::isShutdownSubscribed ( CallBacker ) const

Only for debugging purposes, don't use.

void NotifierAccess::notify ( const CallBack ,
bool  first = false 
)
bool NotifierAccess::notifyIfNotNotified ( const CallBack )
void NotifierAccess::remove ( const CallBack )
Returns
true if it was added
bool NotifierAccess::removeShutdownSubscription ( CallBacker ,
bool  wait 
)
protected
Returns
false only if wait and no lock could be got
bool NotifierAccess::removeWith ( CallBacker ,
bool  wait = true 
)
Returns
false only if wait and no lock could be got
bool NotifierAccess::willCall ( CallBacker ) const
Returns
true if the callback list contains CallBacker.

Friends And Related Function Documentation

friend class CallBacker
friend
friend class NotifyStopper
friend

Member Data Documentation

CallBacker* NotifierAccess::cber_
CallBackSet& NotifierAccess::cbs_
Threads::Lock NotifierAccess::shutdownsubscriberlock_
mutableprotected
ObjectSet<CallBacker> NotifierAccess::shutdownsubscribers_
protected
Returns
previous status

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019