OpendTect  7.0
Public Member Functions | Static Public Member Functions | List of all members
ODSessionTranslator Class Referenceabstract
Inheritance diagram for ODSessionTranslator:
[legend]

Public Member Functions

virtual const char * read (ODSession &, Conn &)=0
 returns err msg or null on success More...
 
virtual const char * warningMsg () const
 
virtual const char * write (const ODSession &, Conn &)=0
 returns err msg or null on success More...
 
- Public Member Functions inherited from Translator
 Translator (const char *nm, const char *usr_nm)
 
virtual ~Translator ()
 
virtual const char * connType () const
 
virtual IOObjcreateWriteIOObj (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 TranslatorgetNew () const =0
 
const TranslatorGroupgroup () 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 uiStringmessage () const
 
void setGroup (TranslatorGroup *g)
 
uiString sSelObjectIsWrongType ()
 
const OD::StringtypeName () const
 
virtual void usePar (const IOPar &)
 
const OD::StringuserName () 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 CallBackertrueCaller ()
 

Static Public Member Functions

static bool retrieve (ODSession &, const IOObj *, uiString &)
 
static bool store (const ODSession &, const IOObj *, uiString &)
 
- Static Public Member Functions inherited from Translator
static const TranslatorgetTemplateInstance (const char *displayname)
 
static uiString sBadConnection ()
 
static uiString sNoIoobjMsg ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from Translator
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 inherited from Translator
TranslatorGroupgroup_ = nullptr
 
uiString msg_
 
BufferString typname_
 
BufferString usrname_
 

Detailed Description

<>

Member Function Documentation

◆ read()

virtual const char* ODSessionTranslator::read ( ODSession ,
Conn  
)
pure virtual

returns err msg or null on success

Implemented in dgbODSessionTranslator.

◆ retrieve()

static bool ODSessionTranslator::retrieve ( ODSession ,
const IOObj ,
uiString  
)
static

BufferString has errmsg, if any If true returned, errmsg contains warnings

◆ store()

static bool ODSessionTranslator::store ( const ODSession ,
const IOObj ,
uiString  
)
static

BufferString has errmsg, if any If true returned, errmsg contains warnings

◆ warningMsg()

virtual const char* ODSessionTranslator::warningMsg ( ) const
inlinevirtual

Reimplemented in dgbODSessionTranslator.

◆ write()

virtual const char* ODSessionTranslator::write ( const ODSession ,
Conn  
)
pure virtual

returns err msg or null on success

Implemented in dgbODSessionTranslator.


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