OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
StringInpSpec Class Reference

Specifications for character string inputs. More...

Inheritance diagram for StringInpSpec:
[legend]

Public Member Functions

 StringInpSpec (const char *s=0)
 
DataInpSpecclone () const override
 
const char * getDefaultStringValue (int) const override
 
bool isUndef (int idx=0) const override
 
void setDefaultValue (bool val, int idx=0) override
 
void setDefaultValue (const char *, int) override
 
void setDefaultValue (double val, int idx=0) override
 
void setDefaultValue (float val, int idx=0) override
 
void setDefaultValue (int val, int idx=0) override
 
bool setText (const char *, int idx=0) override
 
const char * text () const
 
const char * text (int) 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 int getDefaultIntValue (int idx=0) const
 
virtual double getDefaultValue (int idx=0) const
 
virtual double getDValue (int idx=0) const
 
double getdValue (int idx=0) const
 
virtual float getFValue (int idx=0) const
 
float getfValue (int idx=0) const
 
virtual od_int64 getInt64Value (int idx=0) const
 
virtual int getIntValue (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)
 
virtual void setValue (bool b, 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)
 
DataType type () const
 
bool usePar (const IOPar &)
 

Protected Attributes

BufferString defaultstr_
 
bool isUndef_
 
BufferString str_
 
- 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 character string inputs.

<>

Constructor & Destructor Documentation

◆ StringInpSpec()

StringInpSpec::StringInpSpec ( const char *  s = 0)

Member Function Documentation

◆ clone()

DataInpSpec* StringInpSpec::clone ( ) const
overridevirtual

Implements DataInpSpec.

Reimplemented in FileNameInpSpec.

◆ getDefaultStringValue()

const char* StringInpSpec::getDefaultStringValue ( int  ) const
overridevirtual

Reimplemented from DataInpSpec.

◆ isUndef()

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

Implements DataInpSpec.

◆ setDefaultValue() [1/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/5]

void StringInpSpec::setDefaultValue ( const char *  ,
int   
)
overridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [3/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [4/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/5]

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

Reimplemented from DataInpSpec.

◆ setText()

bool StringInpSpec::setText ( const char *  ,
int  idx = 0 
)
overridevirtual

Implements DataInpSpec.

◆ text() [1/2]

const char* StringInpSpec::text ( ) const

◆ text() [2/2]

const char* StringInpSpec::text ( int  ) const
overridevirtual

Implements DataInpSpec.

Member Data Documentation

◆ defaultstr_

BufferString StringInpSpec::defaultstr_
protected

◆ isUndef_

bool StringInpSpec::isUndef_
protected

◆ str_

BufferString StringInpSpec::str_
protected

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