OpendTect  6.3
uiapplserv.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H. Bril
8  Date: Feb 2002
9 ________________________________________________________________________
10 
11 -*/
12 
13 
14 #include "uitoolsmod.h"
15 #include "namedobj.h"
16 class uiParent;
17 class uiApplPartServer;
18 
19 
23 {
24 public:
25  uiApplService( const char* nm = 0 );
27 
28  virtual uiParent* parent() const = 0;
29  virtual bool eventOccurred(const uiApplPartServer*,int evid) = 0;
31  virtual void* getObject(const uiApplPartServer*,int) = 0;
33 };
34 
35 
47 {
48 public:
49 
51  virtual const char* name() const = 0;
52 
54  const uiApplService& appserv() const;
55 
56 protected:
57 
58  uiParent* parent() const;
59 
60  bool sendEvent( int evid ) const;
61  void* getObject( int objid ) const;
62 
63 private:
64 
66 
67 };
bool sendEvent(int evid) const
#define mExpClass(module)
Definition: commondefs.h:157
virtual const char * name() const =0
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Definition: uiparent.h:24
uiApplService & uias_
Definition: uiapplserv.h:65
void * getObject(int objid) const
uiApplService & appserv()
Services from application level to 'Part servers'.
Definition: uiapplserv.h:22
object with a name.
Definition: namedobj.h:20
uiApplPartServer(uiApplService &a)
Makes available certain services that are needed on a higher level.
Definition: uiapplserv.h:46
uiParent * parent() const

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