OpendTect  6.6
Public Member Functions | Protected Attributes | 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 char **sl=0)
 
 StringListInpSpec (const EnumDef &)
 EnumDef is assumed to remain in mem. More...
 
 StringListInpSpec (const StringListInpSpec &)
 
 StringListInpSpec (const uiString *)
 
 StringListInpSpec (const uiStringSet &)
 
 ~StringListInpSpec ()
 
void addString (const uiString &txt)
 
virtual DataInpSpecclone () const
 
const EnumDefenumDef () const
 
virtual int getDefaultIntValue (int idx=0) const
 
virtual double getDValue (int idx=0) const
 
virtual float getFValue (int idx=0) const
 
virtual od_int64 getInt64Value (int idx=0) const
 
virtual int getIntValue (int idx=0) const
 
bool isSet () const
 
virtual bool isUndef (int idx=0) const
 
virtual void setDefaultValue (bool val, int idx=0)
 
virtual void setDefaultValue (const char *val, int idx=0)
 
virtual void setDefaultValue (double val, int idx=0)
 
virtual void setDefaultValue (float val, int idx=0)
 
virtual void setDefaultValue (int i, int idx=0)
 
void setEnumDef (const EnumDef &)
 EnumDef is assumed to remain in mem. More...
 
void setItemText (int idx, const uiString &)
 
void setSet (bool yn=true)
 
virtual bool setText (const char *s, int nr)
 
virtual void setValue (bool val, int idx=0)
 
virtual void setValue (double d, int idx=0)
 
virtual void setValue (float f, int idx=0)
 
virtual void setValue (int i, int idx=0)
 
virtual void setValue (od_int64 i, int idx=0)
 
const uiStringSetstrings () const
 
virtual const char * text (int idx=0) const
 
- Public Member Functions inherited from DataInpSpec
 DataInpSpec (const DataInpSpec &)
 
 DataInpSpec (DataType)
 
virtual ~DataInpSpec ()
 
void fillPar (IOPar &) const
 
virtual bool getBoolValue (int idx=0) const
 
virtual bool getDefaultBoolValue (int idx=0) const
 
virtual float getDefaultfValue (int idx=0) const
 
virtual const char * getDefaultStringValue (int idx=0) const
 
virtual double getDefaultValue (int idx=0) const
 
double getdValue (int idx=0) const
 
float getfValue (int idx=0) const
 
virtual bool hasLimits () const
 
virtual bool isInsideLimits (int idx=0) const
 
virtual const char * name (int idx=0) const
 
virtual int nElems () const
 
virtual DataInpSpecsetName (const char *, int idx=0)
 
DataType type () const
 
bool usePar (const IOPar &)
 

Protected Attributes

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

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() [1/6]

StringListInpSpec::StringListInpSpec ( const BufferStringSet )

◆ StringListInpSpec() [2/6]

StringListInpSpec::StringListInpSpec ( const uiStringSet )

◆ StringListInpSpec() [3/6]

StringListInpSpec::StringListInpSpec ( const char **  sl = 0)

◆ StringListInpSpec() [4/6]

StringListInpSpec::StringListInpSpec ( const uiString )

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

◆ StringListInpSpec() [5/6]

StringListInpSpec::StringListInpSpec ( const EnumDef )

EnumDef is assumed to remain in mem.

◆ StringListInpSpec() [6/6]

StringListInpSpec::StringListInpSpec ( const StringListInpSpec )

◆ ~StringListInpSpec()

StringListInpSpec::~StringListInpSpec ( )

Member Function Documentation

◆ addString()

void StringListInpSpec::addString ( const uiString txt)

◆ clone()

virtual DataInpSpec* StringListInpSpec::clone ( ) const
virtual

Implements DataInpSpec.

◆ enumDef()

const EnumDef* StringListInpSpec::enumDef ( ) const
inline

◆ getDefaultIntValue()

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

Reimplemented from DataInpSpec.

◆ getDValue()

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

Reimplemented from DataInpSpec.

◆ getFValue()

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

Reimplemented from DataInpSpec.

◆ getInt64Value()

virtual od_int64 StringListInpSpec::getInt64Value ( int  idx = 0) const
virtual

Reimplemented from DataInpSpec.

◆ getIntValue()

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

Sets the values (with setText())

Reimplemented from DataInpSpec.

◆ isSet()

bool StringListInpSpec::isSet ( ) const
inline

◆ isUndef()

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

Implements DataInpSpec.

◆ setDefaultValue() [1/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [3/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [4/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/5]

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

Reimplemented from DataInpSpec.

◆ setEnumDef()

void StringListInpSpec::setEnumDef ( const EnumDef )

EnumDef is assumed to remain in mem.

◆ setItemText()

void StringListInpSpec::setItemText ( int  idx,
const uiString  
)

◆ setSet()

void StringListInpSpec::setSet ( bool  yn = true)
inline

◆ setText()

virtual bool StringListInpSpec::setText ( const char *  s,
int  nr 
)
virtual

Implements DataInpSpec.

◆ setValue() [1/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [2/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [3/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [4/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [5/5]

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

Reimplemented from DataInpSpec.

◆ strings()

const uiStringSet& StringListInpSpec::strings ( ) const

◆ text()

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

Implements DataInpSpec.

Member Data Documentation

◆ cur_

int StringListInpSpec::cur_
protected

◆ defaultval_

int StringListInpSpec::defaultval_
protected

◆ enumdef_

const EnumDef* StringListInpSpec::enumdef_
protected

◆ isset_

bool StringListInpSpec::isset_
protected

◆ strings_

uiStringSet StringListInpSpec::strings_
protected

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