OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | 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)
 
virtual FixedString groupName () const =0
 
virtual uiString typeName (int num=1) const =0
 
virtual Translatormake (const char *, bool usrnm) const
 
const TranslatorgetTemplate (const char *, bool usrnm) const
 
const ObjectSet< const Translator > & templates () const
 
virtual const IOObjContextioCtxt () const =0
 
virtual int objSelector (const char *) const =0
 Return value mObjSelUnrelated etc. More...
 
bool hasConnType (const char *) const
 
virtual const char * defExtension () const
 
IOParselHist ()
 
void clearSelHist ()
 
bool add (Translator *)
 
int defTranslIdx () const
 
void setDefTranslIdx (int i)
 
virtual const char * getSurveyDefaultKey (const IOObj *=0) const
 
virtual const char * translationApplication () const
 

Static Public Member Functions

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

Protected Member Functions

const OD::StringclssName () const
 

Static Protected Member Functions

static ObjectSet< TranslatorGroup > & getGroups ()
 

Protected Attributes

BufferString clssname_
 
ObjectSet< const Translatortempls_
 
int deftridx_
 
IOParselhist_
 

Private Member Functions

 mRefCountImpl (TranslatorGroup)
 

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 ctxtioobj.h for details.

Constructor & Destructor Documentation

TranslatorGroup::TranslatorGroup ( const char *  clssnm)

Member Function Documentation

bool TranslatorGroup::add ( Translator )
static TranslatorGroup& TranslatorGroup::addGroup ( TranslatorGroup )
static
void TranslatorGroup::clearSelHist ( )
static void TranslatorGroup::clearSelHists ( )
static
const OD::String& TranslatorGroup::clssName ( ) const
inlineprotected
virtual const char* TranslatorGroup::defExtension ( ) const
inlinevirtual
int TranslatorGroup::defTranslIdx ( ) const
inline
static TranslatorGroup& TranslatorGroup::getGroup ( const char *  nm)
static
static ObjectSet<TranslatorGroup>& TranslatorGroup::getGroups ( )
staticprotected
virtual const char* TranslatorGroup::getSurveyDefaultKey ( const IOObj = 0) const
virtual
const Translator* TranslatorGroup::getTemplate ( const char *  ,
bool  usrnm 
) const
virtual FixedString TranslatorGroup::groupName ( ) const
pure virtual
static const ObjectSet<TranslatorGroup>& TranslatorGroup::groups ( )
inlinestatic
bool TranslatorGroup::hasConnType ( const char *  ) const
static bool TranslatorGroup::hasGroup ( const char *  nm)
static
virtual const IOObjContext& TranslatorGroup::ioCtxt ( ) const
pure virtual
virtual Translator* TranslatorGroup::make ( const char *  ,
bool  usrnm 
) const
virtual
TranslatorGroup::mRefCountImpl ( TranslatorGroup  )
private
virtual int TranslatorGroup::objSelector ( const char *  ) const
pure virtual
IOPar& TranslatorGroup::selHist ( )
void TranslatorGroup::setDefTranslIdx ( int  i)
inline
const ObjectSet<const Translator>& TranslatorGroup::templates ( ) const
inline
virtual const char* TranslatorGroup::translationApplication ( ) const
virtual
virtual uiString TranslatorGroup::typeName ( int  num = 1) const
pure virtual

Member Data Documentation

BufferString TranslatorGroup::clssname_
protected
int TranslatorGroup::deftridx_
protected
IOPar* TranslatorGroup::selhist_
protected
ObjectSet<const Translator> TranslatorGroup::templs_
protected

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