OpendTect  6.6
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)
 
virtual DataInpSpecclone () const
 
const char * getDefaultStringValue (int) const
 
virtual bool isUndef (int idx=0) const
 
virtual void setDefaultValue (bool val, int idx=0)
 
void setDefaultValue (const char *, int)
 
virtual void setDefaultValue (double val, int idx=0)
 
virtual void setDefaultValue (float val, int idx=0)
 
virtual void setDefaultValue (int val, int idx=0)
 
virtual bool setText (const char *, int idx=0)
 
const char * text () const
 
virtual const char * text (int) 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 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()

virtual DataInpSpec* StringInpSpec::clone ( ) const
virtual

Implements DataInpSpec.

Reimplemented in FileNameInpSpec.

◆ getDefaultStringValue()

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

Reimplemented from DataInpSpec.

◆ isUndef()

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

Implements DataInpSpec.

◆ setDefaultValue() [1/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [3/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [4/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/5]

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

Reimplemented from DataInpSpec.

◆ setText()

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

Implements DataInpSpec.

◆ text() [1/2]

const char* StringInpSpec::text ( ) const

◆ text() [2/2]

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

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