OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
NamedObject Class Reference

Object with a name. More...

Inherits CallBacker.

Inherited by BaseMapObject, BasicComponentInfo, BatchProgram, ColTab::Sequence, CtxtIOObj, DataPack, DisplayPropertyLink, ElasticFormula, EM::RegionBoundary, EnumDef, Geometry::RandomLine, i_LayoutMngr, IODir, IODirEntry, IOMan, IOObj, IOObjContext, IOPar, MMProc::AssetMgr, MMProc::ProgSpec, MMProc::ProgSpec::Option, OD::IconFile, Pick::Set, Pick::SetMgr, PreStack::MuteDef, ProbDenFunc, PropertyRef, RockPhysics::Formula, RockPhysics::Formula::ConstDef, RockPhysics::Formula::VarDef, SEGY::HdrCalcSet, Seis2DDataSet, SelectionGrp, Strat::Content, Strat::LaySeqAttrib, Strat::LaySeqAttribSet, Strat::Level, Strat::Lithology, StratSynthLevel, SurveyInfo, SyntheticData, Table::FormatDesc, Table::TargetInfo, Table::TargetInfo::Form, Task, Timer, uiApplService, uiGraphicsScene, uiParentBody, uiPixmap, UnitOfMeasure, visBeachBall::BallDynamics, visBeachBall::BallProperties, Wavelet, Well::DahObj, Well::Data, Well::Info, and Well::Marker.

Public Member Functions

 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Protected Attributes

BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Private Member Functions

void cbRem (NamedObject *)
 

Additional Inherited Members

- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Detailed Description

Object with a name.

The NamedObject has a name and it can notify another NamedObject when it is about to be deleted. The name may either be a string of the object itself, or the name of another object, linked directly. This not only saves memory, but allows for names that are fundamentally linked.

The name() function delivers a string that can be displayed to users in lists, trees, etc, and it is usable as a key. For displaying as annotation, use annotName(). This string is clean from keying details, just as users would expect it on maps etc.

Constructor & Destructor Documentation

NamedObject::NamedObject ( const char *  nm = 0)
NamedObject::NamedObject ( const NamedObject linkedto)
NamedObject::NamedObject ( const NamedObject )
virtual NamedObject::~NamedObject ( )
virtual

Member Function Documentation

virtual const OD::String& NamedObject::annotName ( ) const
inlinevirtual
void NamedObject::cbRem ( NamedObject )
private
void NamedObject::deleteNotify ( const CallBack )
virtual const OD::String& NamedObject::name ( ) const
inlinevirtual

Reimplemented in Well::Data.

bool NamedObject::operator== ( const NamedObject oth) const
inline
void NamedObject::setCleanName ( const char *  )

cleans string first

void NamedObject::setLinkedTo ( NamedObject )
virtual void NamedObject::setName ( const char *  )
virtual

Member Data Documentation

CallBackSet* NamedObject::delnotify_
protected
NamedObject* NamedObject::linkedto_
protected
BufferString* NamedObject::name_
protected

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