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

Specifications for list of character string inputs. More...

Inheritance diagram for StringListInpSpec:
[legend]

Public Member Functions

 StringListInpSpec (const BufferStringSet &)
 
 StringListInpSpec (const uiStringSet &)
 
 StringListInpSpec (const char **sl=0)
 
 StringListInpSpec (const uiString *)
 
 StringListInpSpec (const EnumDef &)
 EnumDef is assumed to remain in mem. More...
 
 StringListInpSpec (const StringListInpSpec &)
 
 ~StringListInpSpec ()
 
virtual bool isUndef (int idx=0) const
 
virtual DataInpSpecclone () const
 
const uiStringSetstrings () const
 
const EnumDefenumDef () const
 
void setEnumDef (const EnumDef &)
 EnumDef is assumed to remain in mem. More...
 
void addString (const uiString &txt)
 
virtual const char * text (int idx=0) const
 
void setItemText (int idx, const uiString &)
 
virtual bool setText (const char *s, int nr)
 
virtual int getIntValue (int idx=0) const
 
virtual double getDValue (int idx=0) const
 
virtual float getFValue (int idx=0) const
 
virtual void setValue (int i, int idx=0)
 
virtual void setValue (double d, int idx=0)
 
virtual void setValue (float f, int idx=0)
 
virtual void setValue (bool val, int idx=0)
 
virtual void setDefaultValue (int i, int idx=0)
 
virtual int getDefaultIntValue (int idx=0) const
 
virtual void setDefaultValue (const char *val, int idx=0)
 
virtual void setDefaultValue (float val, int idx=0)
 
virtual void setDefaultValue (double val, int idx=0)
 
virtual void setDefaultValue (bool val, int idx=0)
 
bool isSet () const
 
void setSet (bool yn=true)
 
- Public Member Functions inherited from DataInpSpec
double getdValue (int idx=0) const
 
float getfValue (int idx=0) const
 

Protected Attributes

uiStringSet strings_
 
int cur_
 
int defaultval_
 
bool isset_
 
const EnumDefenumdef_
 
- Protected Attributes inherited from DataInpSpec
DataType tp_
 
bool prefempty_
 
TypeSet< int > nameidxs_
 
BufferStringSet names_
 

Private Member Functions

 mODTextTranslationClass (StringListInpSpec)
 

Additional Inherited Members

- Protected Member Functions inherited from DataInpSpec
void setType (DataType t)
 

Detailed Description

Specifications for list of character string inputs.

Constructor & Destructor Documentation

StringListInpSpec::StringListInpSpec ( const BufferStringSet )
StringListInpSpec::StringListInpSpec ( const uiStringSet )
StringListInpSpec::StringListInpSpec ( const char **  sl = 0)
StringListInpSpec::StringListInpSpec ( const uiString )

Similar to const char** Adds strings until an empty string is found.

StringListInpSpec::StringListInpSpec ( const EnumDef )

EnumDef is assumed to remain in mem.

StringListInpSpec::StringListInpSpec ( const StringListInpSpec )
StringListInpSpec::~StringListInpSpec ( )

Member Function Documentation

void StringListInpSpec::addString ( const uiString txt)
virtual DataInpSpec* StringListInpSpec::clone ( ) const
virtual

Implements DataInpSpec.

const EnumDef* StringListInpSpec::enumDef ( ) const
inline
virtual int StringListInpSpec::getDefaultIntValue ( int  idx = 0) const
virtual

Reimplemented from DataInpSpec.

virtual double StringListInpSpec::getDValue ( int  idx = 0) const
virtual

Reimplemented from DataInpSpec.

virtual float StringListInpSpec::getFValue ( int  idx = 0) const
virtual

Reimplemented from DataInpSpec.

virtual int StringListInpSpec::getIntValue ( int  idx = 0) const
virtual

Sets the values (with setText())

Reimplemented from DataInpSpec.

bool StringListInpSpec::isSet ( ) const
inline
virtual bool StringListInpSpec::isUndef ( int  idx = 0) const
virtual

Implements DataInpSpec.

StringListInpSpec::mODTextTranslationClass ( StringListInpSpec  )
private
virtual void StringListInpSpec::setDefaultValue ( int  i,
int  idx = 0 
)
virtual

Reimplemented from DataInpSpec.

virtual void StringListInpSpec::setDefaultValue ( const char *  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

virtual void StringListInpSpec::setDefaultValue ( float  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

virtual void StringListInpSpec::setDefaultValue ( double  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

virtual void StringListInpSpec::setDefaultValue ( bool  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

void StringListInpSpec::setEnumDef ( const EnumDef )

EnumDef is assumed to remain in mem.

void StringListInpSpec::setItemText ( int  idx,
const uiString  
)
void StringListInpSpec::setSet ( bool  yn = true)
inline
virtual bool StringListInpSpec::setText ( const char *  s,
int  nr 
)
virtual

Implements DataInpSpec.

virtual void StringListInpSpec::setValue ( int  i,
int  idx = 0 
)
virtual

Reimplemented from DataInpSpec.

virtual void StringListInpSpec::setValue ( double  d,
int  idx = 0 
)
virtual

Reimplemented from DataInpSpec.

virtual void StringListInpSpec::setValue ( float  f,
int  idx = 0 
)
virtual

Reimplemented from DataInpSpec.

virtual void StringListInpSpec::setValue ( bool  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

const uiStringSet& StringListInpSpec::strings ( ) const
virtual const char* StringListInpSpec::text ( int  idx = 0) const
virtual

Implements DataInpSpec.

Member Data Documentation

int StringListInpSpec::cur_
protected
int StringListInpSpec::defaultval_
protected
const EnumDef* StringListInpSpec::enumdef_
protected
bool StringListInpSpec::isset_
protected
uiStringSet StringListInpSpec::strings_
protected

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