OpendTect  7.0
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 ()
 
const char * currentName () const
 
BufferStringerrMsg () const
 
const char * getDefaultName () const
 
const BufferStringSetgetNames () const
 
const uiStringSetgetUserNames () const
 
bool hasName (const char *nm) const
 
bool isEmpty () const
 
void setDefaultName (int idx)
 
int size () const
 

Static Public Member Functions

static char cSeparator ()
 

Protected Member Functions

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

Protected Attributes

StaticStringManager currentname_
 
StaticStringManager errmsgs_
 

Private Attributes

BufferStringSet aliases_
 
BufferString defaultname_
 
BufferStringSet names_
 
uiStringSet usernames_
 

Detailed Description

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

<>

Constructor & Destructor Documentation

◆ ~FactoryBase()

virtual FactoryBase::~FactoryBase ( )
virtual

Member Function Documentation

◆ addNames()

void FactoryBase::addNames ( const char *  ,
const uiString  
)
protected

◆ cSeparator()

static char FactoryBase::cSeparator ( )
inlinestatic

◆ currentName()

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.

◆ errMsg()

BufferString& FactoryBase::errMsg ( ) const

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

◆ getDefaultName()

const char* FactoryBase::getDefaultName ( ) const

◆ getNames()

const BufferStringSet& FactoryBase::getNames ( ) const

◆ getUserNames()

const uiStringSet& FactoryBase::getUserNames ( ) const

◆ hasName()

bool FactoryBase::hasName ( const char *  nm) const
inline

◆ indexOf()

int FactoryBase::indexOf ( const char *  ) const
protected

◆ isEmpty()

bool FactoryBase::isEmpty ( ) const

◆ moveAfter_()

bool FactoryBase::moveAfter_ ( int  ,
int   
)
protected

◆ removeByIndex()

void FactoryBase::removeByIndex ( int  )
protected

◆ setDefaultName()

void FactoryBase::setDefaultName ( int  idx)

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

◆ setNames()

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

◆ size()

int FactoryBase::size ( ) const

Member Data Documentation

◆ aliases_

BufferStringSet FactoryBase::aliases_
private

◆ currentname_

StaticStringManager FactoryBase::currentname_
mutableprotected

◆ defaultname_

BufferString FactoryBase::defaultname_
private

◆ errmsgs_

StaticStringManager FactoryBase::errmsgs_
mutableprotected

◆ names_

BufferStringSet FactoryBase::names_
private

◆ usernames_

uiStringSet FactoryBase::usernames_
private

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