![]() |
OpendTect
6.6
|
I/O Interpreter class for a certain object type. More...
Public Member Functions | |
| Translator (const char *nm, const char *usr_nm) | |
| virtual | ~Translator () |
| virtual const char * | connType () const |
| virtual IOObj * | createWriteIOObj (const IOObjContext &, const MultiID &) const |
| virtual const char * | defExtension () const |
| const char * | getDisplayName () const |
| "username [group]" More... | |
| virtual Translator * | getNew () const =0 |
| const TranslatorGroup * | group () const |
| virtual const char * | iconName () const |
| virtual bool | implExists (const IOObj *, bool forread) const |
| virtual bool | implManagesObjects (const IOObj *) const |
| virtual bool | implReadOnly (const IOObj *) const |
| virtual bool | implRemove (const IOObj *) const |
| virtual bool | implRename (const IOObj *, const char *, const CallBack *cb=0) const |
| virtual bool | implSetReadOnly (const IOObj *, bool) const |
| virtual bool | isUserSelectable (bool forread=true) const |
| void | setGroup (TranslatorGroup *g) |
| uiString | sSelObjectIsWrongType () |
| const OD::String & | typeName () const |
| virtual void | usePar (const IOPar &) |
| const OD::String & | userName () const |
Public Member Functions inherited from CallBacker | |
| CallBacker () | |
| CallBacker (const CallBacker &) | |
| virtual | ~CallBacker () |
| bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
| bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
| void | detachAllNotifiers () const |
| Call from the destructor of your inherited object. More... | |
| void | detachCB (const NotifierAccess &, const CallBack &) const |
| void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
| virtual bool | isCapsule () const |
| bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
| void | stopReceivingNotifications () const |
Static Public Member Functions | |
| static const Translator * | getTemplateInstance (const char *displayname) |
| static uiString | sBadConnection () |
| static uiString | sNoIoobjMsg () |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
Static Protected Member Functions | |
| static BufferString | getAssociatedFileName (const char *fnm, const char *extension) |
| static BufferString | getAssociatedFileName (const IOObj &, const char *extension) |
| static bool | removeAssociatedFile (const char *fnm, const char *ext) |
| static bool | renameAssociatedFile (const char *fnm, const char *ext, const char *newnm) |
| static bool | renameLargeFile (const char *fnm, const char *newfnm, const CallBack *cb=0) |
| static bool | setPermAssociatedFile (const char *fnm, const char *ext, bool setwritable) |
Protected Attributes | |
| TranslatorGroup * | group_ |
| BufferString | typname_ |
| BufferString | usrname_ |
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.
<>
| Translator::Translator | ( | const char * | nm, |
| const char * | usr_nm | ||
| ) |
|
inlinevirtual |
|
virtual |
Reimplemented in SeisPSCubeSeisTrcTranslator.
|
virtual |
Reimplemented in SEGYDirectSeisTrcTranslator.
|
inlinevirtual |
|
staticprotected |
|
staticprotected |
| const char* Translator::getDisplayName | ( | ) | const |
"username [group]"
|
pure virtual |
|
static |
|
inline |
|
inlinevirtual |
Reimplemented in BlocksSeisTrcTranslator, SEGYDirectSeisTrc2DTranslator, SEGYDirectSeisTrcTranslator, and SEGYDirectSeisPS3DTranslator.
|
virtual |
|
virtual |
Reimplemented in SEGYSeisTrcTranslator.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in odWellTranslator, SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, and EMSurfaceTranslator.
|
inlinevirtual |
Reimplemented in SeisTrcTranslator, CBVSSeisTrcTranslator, CBVSSeisTrc2DTranslator, SeisTrc2DTranslator, lmkEMFault3DTranslator, lmkEMStickSetTranslator, SeisPSCubeSeisTrcTranslator, MultiCubeSeisPS3DTranslator, SEGYDirectSeisTrc2DTranslator, SEGYDirectSeisTrcTranslator, SEGYDirectSeisPS2DTranslator, SEGYDirectSeisPS3DTranslator, SEGYDirectSurvGeom2DTranslator, and BlocksSeisTrcTranslator.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
inline |
|
staticprotected |
|
static |
| uiString Translator::sSelObjectIsWrongType | ( | ) |
|
inline |
|
inlinevirtual |
Reimplemented in SeisTrcTranslator, CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, SEGYSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
|
inline |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022