OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 
15 #include "uitoolsmod.h"
16 #include "namedobj.h"
17 class uiParent;
18 class uiApplPartServer;
19 
20 
24 {
25 public:
26  uiApplService( const char* nm = 0 );
28 
29  virtual uiParent* parent() const = 0;
30  virtual bool eventOccurred(const uiApplPartServer*,int evid) = 0;
32  virtual void* getObject(const uiApplPartServer*,int) = 0;
34 };
35 
36 
48 {
49 public:
50 
52  virtual const char* name() const = 0;
53 
55  const uiApplService& appserv() const;
56 
58 
59 protected:
60 
61  uiParent* parent() const;
62 
63  bool sendEvent( int evid ) const;
64  void* getObject( int objid ) const;
65 
66 private:
67 
70 
71 };
72 
73 
NamedObject
object with a name.
Definition: namedobj.h:42
uiApplPartServer::appserv
uiApplService & appserv()
uiApplPartServer::sendEvent
bool sendEvent(int evid) const
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
namedobj.h
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiApplPartServer
Makes available certain services that are needed on a higher level.
Definition: uiapplserv.h:48
uiApplPartServer::name
virtual const char * name() const =0
uiApplService::parent
virtual uiParent * parent() const =0
uiApplPartServer::parent
uiParent * parent() const
uiApplPartServer::uiApplPartServer
uiApplPartServer(uiApplService &a)
uiApplService::eventOccurred
virtual bool eventOccurred(const uiApplPartServer *, int evid)=0
The evid will be specific for each partserver.
uiApplPartServer::parent_
uiParent * parent_
Definition: uiapplserv.h:69
uiApplService::uiApplService
uiApplService(const char *nm=0)
The name is the application name.
uiApplPartServer::setParent
void setParent(uiParent *)
uiApplService
Services from application level to 'Part servers'.
Definition: uiapplserv.h:24
uiApplPartServer::uias_
uiApplService & uias_
Definition: uiapplserv.h:68
uiParent
Definition: uiparent.h:26
uiApplService::getObject
virtual void * getObject(const uiApplPartServer *, int)=0
The actual type is a protocol with the partserver.
uiApplPartServer::appserv
const uiApplService & appserv() const
uiApplPartServer::getObject
void * getObject(int objid) const

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