OpendTect
6.6
|
Group of Translators. Has a static factory. More...
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 Translator * | getTemplate (const char *, bool usrnm) const |
virtual FixedString | groupName () const =0 |
bool | hasConnType (const char *) const |
virtual const IOObjContext & | ioCtxt () const =0 |
virtual Translator * | make (const char *, bool usrnm) const |
virtual int | objSelector (const char *) const =0 |
Return value mObjSelUnrelated etc. More... | |
IOPar & | selHist () |
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 TranslatorGroup & | addGroup (TranslatorGroup *) |
static void | clearSelHists () |
static TranslatorGroup & | getGroup (const char *nm) |
static const ObjectSet< TranslatorGroup > & | groups () |
static bool | hasGroup (const char *nm) |
Protected Member Functions | |
const OD::String & | clssName () const |
Static Protected Member Functions | |
static ObjectSet< TranslatorGroup > & | getGroups () |
Protected Attributes | |
BufferString | clssname_ |
int | deftridx_ |
IOPar * | selhist_ |
ObjectSet< const Translator > | templs_ |
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.
<>
TranslatorGroup::TranslatorGroup | ( | const char * | clssnm | ) |
bool TranslatorGroup::add | ( | Translator * | ) |
|
static |
void TranslatorGroup::clearSelHist | ( | ) |
|
static |
|
inlineprotected |
|
inlinevirtual |
|
inline |
|
static |
|
staticprotected |
|
virtual |
Reimplemented in SeisTrcTranslatorGroup, and SeisTrc2DTranslatorGroup.
const Translator* TranslatorGroup::getTemplate | ( | const char * | , |
bool | usrnm | ||
) | const |
|
pure virtual |
|
inlinestatic |
bool TranslatorGroup::hasConnType | ( | const char * | ) | const |
|
static |
|
pure virtual |
|
virtual |
|
pure virtual |
Return value mObjSelUnrelated etc.
IOPar& TranslatorGroup::selHist | ( | ) |
|
inline |
|
inline |
|
virtual |
|
pure virtual |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022