OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
TranslatorGroup Class Referenceabstract

Group of Translators. Has a static factory. More...

Inheritance diagram for TranslatorGroup:
[legend]

Public Member Functions

 TranslatorGroup (const char *clssnm)
 
bool add (Translator *)
 
void clearSelHist ()
 
virtual const char * defExtension () const
 
int defTranslIdx () const
 
virtual const char * getSurveyDefaultKey (const IOObj *=0) const
 
const TranslatorgetTemplate (const char *, bool usrnm) const
 
virtual FixedString groupName () const =0
 
bool hasConnType (const char *) const
 
virtual const IOObjContextioCtxt () const =0
 
virtual Translatormake (const char *, bool usrnm) const
 
virtual int objSelector (const char *) const =0
 Return value mObjSelUnrelated etc. More...
 
IOParselHist ()
 
void setDefTranslIdx (int i)
 
const ObjectSet< const Translator > & templates () const
 
virtual const char * translationApplication () const
 
virtual uiString typeName (int num=1) const =0
 

Static Public Member Functions

static TranslatorGroupaddGroup (TranslatorGroup *)
 
static void clearSelHists ()
 
static TranslatorGroupgetGroup (const char *nm)
 
static const ObjectSet< TranslatorGroup > & groups ()
 
static bool hasGroup (const char *nm)
 

Protected Member Functions

const OD::StringclssName () const
 

Static Protected Member Functions

static ObjectSet< TranslatorGroup > & getGroups ()
 

Protected Attributes

BufferString clssname_
 
int deftridx_
 
IOParselhist_
 
ObjectSet< const Translatortempls_
 

Detailed Description

Group of Translators. Has a static factory.

A TranslatorGroup represents a number of IO interpreters for a certain object type. For example, Wavelets have the WaveletTranslatorGroup singleton class which creates WaveletTranslator subclass instances.

You must define two static methods: static int selector(const char*); -> whether a certain group name matches. Can usually return defaultSelector static const IOObjContext& ioContext(); -> Returns the IO context. See ioobjctxt.h for details.

<>

Constructor & Destructor Documentation

◆ TranslatorGroup()

TranslatorGroup::TranslatorGroup ( const char *  clssnm)

Member Function Documentation

◆ add()

bool TranslatorGroup::add ( Translator )

◆ addGroup()

static TranslatorGroup& TranslatorGroup::addGroup ( TranslatorGroup )
static

◆ clearSelHist()

void TranslatorGroup::clearSelHist ( )

◆ clearSelHists()

static void TranslatorGroup::clearSelHists ( )
static

◆ clssName()

const OD::String& TranslatorGroup::clssName ( ) const
inlineprotected

◆ defExtension()

virtual const char* TranslatorGroup::defExtension ( ) const
inlinevirtual

◆ defTranslIdx()

int TranslatorGroup::defTranslIdx ( ) const
inline

◆ getGroup()

static TranslatorGroup& TranslatorGroup::getGroup ( const char *  nm)
static

◆ getGroups()

static ObjectSet<TranslatorGroup>& TranslatorGroup::getGroups ( )
staticprotected

◆ getSurveyDefaultKey()

virtual const char* TranslatorGroup::getSurveyDefaultKey ( const IOObj = 0) const
virtual

◆ getTemplate()

const Translator* TranslatorGroup::getTemplate ( const char *  ,
bool  usrnm 
) const

◆ groupName()

virtual FixedString TranslatorGroup::groupName ( ) const
pure virtual

◆ groups()

static const ObjectSet<TranslatorGroup>& TranslatorGroup::groups ( )
inlinestatic

◆ hasConnType()

bool TranslatorGroup::hasConnType ( const char *  ) const

◆ hasGroup()

static bool TranslatorGroup::hasGroup ( const char *  nm)
static

◆ ioCtxt()

virtual const IOObjContext& TranslatorGroup::ioCtxt ( ) const
pure virtual

◆ make()

virtual Translator* TranslatorGroup::make ( const char *  ,
bool  usrnm 
) const
virtual

◆ objSelector()

virtual int TranslatorGroup::objSelector ( const char *  ) const
pure virtual

Return value mObjSelUnrelated etc.

◆ selHist()

IOPar& TranslatorGroup::selHist ( )

◆ setDefTranslIdx()

void TranslatorGroup::setDefTranslIdx ( int  i)
inline

◆ templates()

const ObjectSet<const Translator>& TranslatorGroup::templates ( ) const
inline

◆ translationApplication()

virtual const char* TranslatorGroup::translationApplication ( ) const
virtual

◆ typeName()

virtual uiString TranslatorGroup::typeName ( int  num = 1) const
pure virtual

Member Data Documentation

◆ clssname_

BufferString TranslatorGroup::clssname_
protected

◆ deftridx_

int TranslatorGroup::deftridx_
protected

◆ selhist_

IOPar* TranslatorGroup::selhist_
protected

◆ templs_

ObjectSet<const Translator> TranslatorGroup::templs_
protected

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