OpendTect
7.0
|
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 |
virtual bool | getConfirmRemoveMsg (const IOObj *, uiString &msg, uiString &canceltxt, uiString &deepremovetxt, uiString &shallowremovetxt) 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 | implIsLink (const IOObj *) const |
virtual bool | implReadOnly (const IOObj *) const |
virtual bool | implRemove (const IOObj *, bool deep=true) const |
virtual bool | implRename (const IOObj *, const char *newnm) const |
virtual bool | implSetReadOnly (const IOObj *, bool) const |
virtual bool | isUserSelectable (bool forread=true) const |
virtual const uiString & | message () 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 |
virtual CallBacker * | trueCaller () |
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=nullptr) |
static bool | setPermAssociatedFile (const char *fnm, const char *ext, bool setwritable) |
Protected Attributes | |
TranslatorGroup * | group_ = nullptr |
uiString | msg_ |
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.
|
virtual |
|
staticprotected |
|
staticprotected |
|
virtual |
if deepremove option is selected by user, the implRemove call gets deep=true
Reimplemented in CBVSSeisTrcTranslator, SEGYDirectSeisTrc2DTranslator, and SEGYDirectSeisTrcTranslator.
const char* Translator::getDisplayName | ( | ) | const |
"username [group]"
|
pure virtual |
|
static |
|
inline |
|
inlinevirtual |
Reimplemented in BlocksSeisTrcTranslator, SEGYDirectSeisTrc2DTranslator, SEGYDirectSeisTrcTranslator, and SEGYDirectSeisPS3DTranslator.
|
virtual |
|
virtual |
Reimplemented in SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, and SEGYSeisTrcTranslator.
|
virtual |
|
virtual |
Reimplemented in odWellTranslator, StratTreeNTranslator, CBVSSeisPS2DTranslator, CBVSSeisPS3DTranslator, SeisPS3DTranslator, SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, SEGYDirectSeisTrc2DTranslator, SeisTrc2DTranslator, TwoDSeisTrcTranslator, SEGYSeisTrcTranslator, SEGYDirectSeisTrcTranslator, PickSetTranslator, ODImageDefTranslator, EMSurfaceTranslator, and odEMBodyTranslator.
|
virtual |
|
virtual |
Reimplemented in odWellTranslator, StratTreeNTranslator, SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, and EMSurfaceTranslator.
|
inlinevirtual |
Reimplemented in SeisTrcTranslator, CBVSSeisTrcTranslator, CBVSSeisTrc2DTranslator, SeisTrc2DTranslator, SEGYDirectSeisTrcTranslator, lmkEMFault3DTranslator, lmkEMStickSetTranslator, SeisPSCubeSeisTrcTranslator, MultiCubeSeisPS3DTranslator, SEGYDirectSeisTrc2DTranslator, SEGYDirectSeisPS2DTranslator, SEGYDirectSeisPS3DTranslator, SEGYDirectSurvGeom2DTranslator, and BlocksSeisTrcTranslator.
|
inlinevirtual |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
inline |
|
staticprotected |
|
static |
uiString Translator::sSelObjectIsWrongType | ( | ) |
|
inline |
|
inlinevirtual |
Reimplemented in SeisTrcTranslator, CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, SEGYSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024