OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | List of all members
Translator Class Referenceabstract

I/O Interpreter class for a certain object type. More...

Inheritance diagram for Translator:
[legend]

Public Member Functions

uiString sSelObjectIsWrongType ()
 
- 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...
 

Static Public Member Functions

static uiString sNoIoobjMsg ()
 
static uiString sBadConnection ()
 

Protected Attributes

BufferString typname_
 
BufferString usrname_
 
TranslatorGroupgroup_
 

Private Member Functions

virtual mODTextTranslationClass(Translator) public ~Translator ()
 
const OD::StringtypeName () const
 
const OD::StringuserName () const
 
const TranslatorGroupgroup () const
 
virtual TranslatorgetNew () const =0
 
virtual bool implExists (const IOObj *, bool forread) const
 
virtual bool implReadOnly (const IOObj *) const
 
virtual bool implRename (const IOObj *, const char *, const CallBack *cb=0) const
 
virtual bool implManagesObjects (const IOObj *) const
 
virtual bool implRemove (const IOObj *) const
 
virtual bool implSetReadOnly (const IOObj *, bool) const
 
virtual const char * connType () const
 
virtual void usePar (const IOPar &)
 
virtual const char * defExtension () const
 
void setGroup (TranslatorGroup *g)
 
virtual bool isUserSelectable (bool forread=true) const
 
virtual IOObjcreateWriteIOObj (const IOObjContext &, const MultiID &) const
 
virtual const char * iconName () const
 
const char * getDisplayName () const
 "username [group]" More...
 

Static Private Member Functions

static const TranslatorgetTemplateInstance (const char *displayname)
 

Additional Inherited Members

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

Detailed Description

I/O Interpreter class for a certain object type.

Every concept (Well, Seismic data, etc.) should have its own Translator base class. Together with the Group, you then get 2 + N classes per concept: XxxTranslatorGroup XxxTranslator yyyXxxTranslator The XxxTranslator defines the 'protocol' for reading and writing objects of this type. Actual I/O will always be done through a pointer to that type.

Important: use the macros at the end of this header file to declare and define every Translator(Group)-related class.

Constructor & Destructor Documentation

virtual mODTextTranslationClass (Translator) public Translator::~Translator ( )
inlineprivatevirtual

Member Function Documentation

virtual const char* Translator::connType ( ) const
privatevirtual

Reimplemented in SeisPSCubeSeisTrcTranslator.

virtual IOObj* Translator::createWriteIOObj ( const IOObjContext ,
const MultiID  
) const
privatevirtual

Reimplemented in SEGYDirectSeisTrcTranslator.

virtual const char* Translator::defExtension ( ) const
inlineprivatevirtual
const char* Translator::getDisplayName ( ) const
private

"username [group]"

virtual Translator* Translator::getNew ( ) const
privatepure virtual
static const Translator* Translator::getTemplateInstance ( const char *  displayname)
staticprivate
const TranslatorGroup* Translator::group ( ) const
inlineprivate
virtual const char* Translator::iconName ( ) const
inlineprivatevirtual
virtual bool Translator::implExists ( const IOObj ,
bool  forread 
) const
privatevirtual
virtual bool Translator::implManagesObjects ( const IOObj ) const
privatevirtual

Reimplemented in SEGYSeisTrcTranslator.

virtual bool Translator::implReadOnly ( const IOObj ) const
privatevirtual
virtual bool Translator::implRemove ( const IOObj ) const
privatevirtual
virtual bool Translator::implRename ( const IOObj ,
const char *  ,
const CallBack cb = 0 
) const
privatevirtual
virtual bool Translator::implSetReadOnly ( const IOObj ,
bool   
) const
privatevirtual
virtual bool Translator::isUserSelectable ( bool  forread = true) const
inlineprivatevirtual
static uiString Translator::sBadConnection ( )
static
void Translator::setGroup ( TranslatorGroup g)
inlineprivate
static uiString Translator::sNoIoobjMsg ( )
static
uiString Translator::sSelObjectIsWrongType ( )
const OD::String& Translator::typeName ( ) const
inlineprivate
virtual void Translator::usePar ( const IOPar )
inlineprivatevirtual
const OD::String& Translator::userName ( ) const
inlineprivate

Member Data Documentation

TranslatorGroup* Translator::group_
protected
BufferString Translator::typname_
protected
BufferString Translator::usrname_
protected

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