OpendTect  6.3
namedmonitorable.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: Bert
8  Date: Feb 2017
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "basicmod.h"
14 #include "namedobj.h"
15 #include "monitor.h"
16 
17 
21  , public NamedObject
22 {
23 public:
24 
25  NamedMonitorable(const char* nm=0);
26  NamedMonitorable(const NamedObject&);
27  virtual ~NamedMonitorable();
29 
30  inline virtual mImplSimpleMonitoredGet(getName,BufferString,name_)
31  virtual void setName(const char*);
32 
34 
35  static ChangeType cNameChange() { return 1; }
36 
37  mExpClass(Basic) NameChgData : public ChangeData::AuxData
38  {
39  public:
40  NameChgData( const char* from, const char* to )
41  : oldnm_(from), newnm_(to) {}
42 
45 
46  };
47 };
#define mExpClass(module)
Definition: commondefs.h:157
Object that can be MT-safely monitored from cradle to grave.
Definition: monitorable.h:76
NameChgData(const char *from, const char *to)
Definition: namedmonitorable.h:40
int ChangeType
Definition: monitorable.h:80
T to(const F &fr)
Definition: convert.h:31
Monitorable object with a name. All but name() are MT-safe.
Definition: namedmonitorable.h:20
#define mImplSimpleMonitoredGet(fnnm, typ, memb)
Defines simple MT-safe copyable member get.
Definition: monitor.h:21
#define mDeclMonitorableAssignment(clss)
like mDeclAbstractMonitorableAssignment but for non-abstract subclasses. Implements the clone() metho...
Definition: monitor.h:111
#define mDeclInstanceCreatedNotifierAccess(clss)
Definition: notify.h:235
BufferString newnm_
Definition: namedmonitorable.h:44
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
BufferString oldnm_
Definition: namedmonitorable.h:43
object with a name.
Definition: namedobj.h:20
Definition: namedmonitorable.h:37
Definition: monitorable.h:113

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