OpendTect  7.0
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)
 
DataInpSpecclone () const override
 
const EnumDefenumDef () const
 
int getDefaultIntValue (int idx=0) const override
 
double getDValue (int idx=0) const override
 
float getFValue (int idx=0) const override
 
od_int64 getInt64Value (int idx=0) const override
 
int getIntValue (int idx=0) const override
 
bool isSet () const
 
bool isUndef (int idx=0) const override
 
void setDefaultValue (bool val, int idx=0) override
 
void setDefaultValue (const char *val, int idx=0) override
 
void setDefaultValue (double val, int idx=0) override
 
void setDefaultValue (float val, int idx=0) override
 
void setDefaultValue (int i, int idx=0) override
 
void setEnumDef (const EnumDef &)
 EnumDef is assumed to remain in mem. More...
 
void setItemText (int idx, const uiString &)
 
void setSet (bool yn=true)
 
bool setText (const char *s, int nr) override
 
void setValue (bool val, int idx=0) override
 
void setValue (double d, int idx=0) override
 
void setValue (float f, int idx=0) override
 
void setValue (int i, int idx=0) override
 
void setValue (od_int64 i, int idx=0) override
 
const uiStringSetstrings () const
 
const char * text (int idx=0) const override
 
- 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()

DataInpSpec* StringListInpSpec::clone ( ) const
overridevirtual

Implements DataInpSpec.

◆ enumDef()

const EnumDef* StringListInpSpec::enumDef ( ) const
inline

◆ getDefaultIntValue()

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

Reimplemented from DataInpSpec.

◆ getDValue()

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

Reimplemented from DataInpSpec.

◆ getFValue()

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

Reimplemented from DataInpSpec.

◆ getInt64Value()

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

Reimplemented from DataInpSpec.

◆ getIntValue()

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

Sets the values (with setText())

Reimplemented from DataInpSpec.

◆ isSet()

bool StringListInpSpec::isSet ( ) const
inline

◆ isUndef()

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

Implements DataInpSpec.

◆ setDefaultValue() [1/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [3/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [4/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/5]

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

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()

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

Implements DataInpSpec.

◆ setValue() [1/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [2/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [3/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [4/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [5/5]

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

Reimplemented from DataInpSpec.

◆ strings()

const uiStringSet& StringListInpSpec::strings ( ) const

◆ text()

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

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-2024