OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
FactoryBase Class Reference

Base class for Factories ( Factory, Factory1Param, Factory2Param and Factory3Param. ) More...

Inheritance diagram for FactoryBase:
[legend]

Public Member Functions

virtual ~FactoryBase ()
 
int size () const
 
bool isEmpty () const
 
bool hasName (const char *n)
 
const BufferStringSetgetNames () const
 
const uiStringSetgetUserNames () const
 
void setDefaultName (int idx)
 
const char * getDefaultName () const
 
BufferStringerrMsg () const
 
const char * currentName () const
 

Static Public Member Functions

static char cSeparator ()
 

Protected Member Functions

int indexOf (const char *) const
 
void addNames (const char *, const uiString &)
 
void setNames (int, const char *, const uiString &)
 

Protected Attributes

StaticStringManager errmsgs_
 
StaticStringManager currentname_
 

Private Attributes

BufferStringSet names_
 
uiStringSet usernames_
 
BufferStringSet aliases_
 
BufferString defaultname_
 

Detailed Description

Base class for Factories ( Factory, Factory1Param, Factory2Param and Factory3Param. )

Constructor & Destructor Documentation

virtual FactoryBase::~FactoryBase ( )
virtual

Member Function Documentation

void FactoryBase::addNames ( const char *  ,
const uiString  
)
protected
static char FactoryBase::cSeparator ( )
inlinestatic
const char* FactoryBase::currentName ( ) const

Is set only when calling the create- functions, so they can know what was requested.

Note
Threadsafe, as each thread will have a different string returned.
BufferString& FactoryBase::errMsg ( ) const

Threadsafe, as each thread will have a different string returned.

const char* FactoryBase::getDefaultName ( ) const
const BufferStringSet& FactoryBase::getNames ( ) const
const uiStringSet& FactoryBase::getUserNames ( ) const
bool FactoryBase::hasName ( const char *  n)
inline
int FactoryBase::indexOf ( const char *  ) const
protected
bool FactoryBase::isEmpty ( ) const
void FactoryBase::setDefaultName ( int  idx)

idx refers to names in names_, or -1 for none

void FactoryBase::setNames ( int  ,
const char *  ,
const uiString  
)
protected
int FactoryBase::size ( ) const

Member Data Documentation

BufferStringSet FactoryBase::aliases_
private
StaticStringManager FactoryBase::currentname_
mutableprotected
BufferString FactoryBase::defaultname_
private
StaticStringManager FactoryBase::errmsgs_
mutableprotected
BufferStringSet FactoryBase::names_
private
uiStringSet FactoryBase::usernames_
private

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