OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Attributes | List of all members
DataInpSpec Class Referenceabstract

Specification of input characteristics. More...

Inheritance diagram for DataInpSpec:
[legend]

Public Member Functions

 DataInpSpec (const DataInpSpec &)
 
 DataInpSpec (DataType)
 
virtual ~DataInpSpec ()
 
virtual DataInpSpecclone () const =0
 
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 const char * getDefaultStringValue (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 bool isUndef (int idx=0) const =0
 
virtual const char * name (int idx=0) const
 
virtual int nElems () const
 
virtual void setDefaultValue (bool b, int idx=0)
 
virtual void setDefaultValue (const char *s, int idx=0)
 
virtual void setDefaultValue (double d, int idx=0)
 
virtual void setDefaultValue (float f, int idx=0)
 
virtual void setDefaultValue (int i, int idx=0)
 
virtual DataInpSpecsetName (const char *, int idx=0)
 
virtual bool setText (const char *, int idx=0)=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)
 
virtual const char * text (int idx=0) const =0
 
DataType type () const
 
bool usePar (const IOPar &)
 

Protected Member Functions

void setType (DataType t)
 

Protected Attributes

TypeSet< int > nameidxs_
 
BufferStringSet names_
 
bool prefempty_
 
DataType tp_
 

Static Private Attributes

static const char * valuestr
 

Detailed Description

Specification of input characteristics.

A DataInpSpec is a conceptual specification of intrinsic properties of data. With it, user interface parts can be constructed (uiGenInput).

<>

Constructor & Destructor Documentation

◆ DataInpSpec() [1/2]

DataInpSpec::DataInpSpec ( DataType  )

◆ DataInpSpec() [2/2]

DataInpSpec::DataInpSpec ( const DataInpSpec )

◆ ~DataInpSpec()

virtual DataInpSpec::~DataInpSpec ( )
virtual

Member Function Documentation

◆ clone()

virtual DataInpSpec* DataInpSpec::clone ( ) const
pure virtual

◆ fillPar()

void DataInpSpec::fillPar ( IOPar ) const

◆ getBoolValue()

virtual bool DataInpSpec::getBoolValue ( int  idx = 0) const
virtual

Reimplemented in BoolInpSpec.

◆ getDefaultBoolValue()

virtual bool DataInpSpec::getDefaultBoolValue ( int  idx = 0) const
virtual

Reimplemented in BoolInpSpec.

◆ getDefaultfValue()

virtual float DataInpSpec::getDefaultfValue ( int  idx = 0) const
virtual

Reimplemented in NumInpIntervalSpec< T >, and NumInpSpec< T >.

◆ getDefaultIntValue()

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

◆ getDefaultStringValue()

virtual const char* DataInpSpec::getDefaultStringValue ( int  idx = 0) const
virtual

Reimplemented in StringInpSpec.

◆ getDefaultValue()

virtual double DataInpSpec::getDefaultValue ( int  idx = 0) const
virtual

Reimplemented in NumInpIntervalSpec< T >, and NumInpSpec< T >.

◆ getDValue()

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

◆ getdValue()

double DataInpSpec::getdValue ( int  idx = 0) const
inline

◆ getFValue()

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

◆ getfValue()

float DataInpSpec::getfValue ( int  idx = 0) const
inline

◆ getInt64Value()

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

◆ getIntValue()

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

Sets the values (with setText())

Reimplemented in StringListInpSpec, NumInpIntervalSpec< T >, and NumInpSpec< T >.

◆ hasLimits()

virtual bool DataInpSpec::hasLimits ( ) const
inlinevirtual

Reimplemented in NumInpIntervalSpec< T >, and NumInpSpec< T >.

◆ isInsideLimits()

virtual bool DataInpSpec::isInsideLimits ( int  idx = 0) const
virtual

Reimplemented in NumInpIntervalSpec< T >, and NumInpSpec< T >.

◆ isUndef()

virtual bool DataInpSpec::isUndef ( int  idx = 0) const
pure virtual

◆ name()

virtual const char* DataInpSpec::name ( int  idx = 0) const
virtual

◆ nElems()

virtual int DataInpSpec::nElems ( ) const
inlinevirtual

Reimplemented in PositionInpSpec, and NumInpIntervalSpec< T >.

◆ setDefaultValue() [1/5]

virtual void DataInpSpec::setDefaultValue ( bool  b,
int  idx = 0 
)
inlinevirtual

◆ setDefaultValue() [2/5]

virtual void DataInpSpec::setDefaultValue ( const char *  s,
int  idx = 0 
)
inlinevirtual

◆ setDefaultValue() [3/5]

virtual void DataInpSpec::setDefaultValue ( double  d,
int  idx = 0 
)
inlinevirtual

◆ setDefaultValue() [4/5]

virtual void DataInpSpec::setDefaultValue ( float  f,
int  idx = 0 
)
inlinevirtual

◆ setDefaultValue() [5/5]

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

◆ setName()

virtual DataInpSpec& DataInpSpec::setName ( const char *  ,
int  idx = 0 
)
virtual

◆ setText()

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

◆ setType()

void DataInpSpec::setType ( DataType  t)
protected

◆ setValue() [1/5]

virtual void DataInpSpec::setValue ( bool  b,
int  idx = 0 
)
virtual

◆ setValue() [2/5]

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

◆ setValue() [3/5]

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

◆ setValue() [4/5]

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

◆ setValue() [5/5]

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

◆ text()

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

◆ type()

DataType DataInpSpec::type ( ) const

◆ usePar()

bool DataInpSpec::usePar ( const IOPar )

Saves the values (from text())

Member Data Documentation

◆ nameidxs_

TypeSet<int> DataInpSpec::nameidxs_
protected

◆ names_

BufferStringSet DataInpSpec::names_
protected

◆ prefempty_

bool DataInpSpec::prefempty_
protected

◆ tp_

DataType DataInpSpec::tp_
protected

◆ valuestr

const char* DataInpSpec::valuestr
staticprivate

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