OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Attributes | List of all members
DataInpSpec Class Referenceabstract

Specification of input characteristics. More...

Inheritance diagram for DataInpSpec:
[legend]

Public Member Functions

double getdValue (int idx=0) const
 
float getfValue (int idx=0) const
 

Protected Member Functions

void setType (DataType t)
 

Protected Attributes

DataType tp_
 
bool prefempty_
 
TypeSet< int > nameidxs_
 
BufferStringSet names_
 

Private Member Functions

mODTextTranslationClass(DataInpSpec) public DataInpSpec (const DataInpSpec &)
 
virtual ~DataInpSpec ()
 
DataType type () const
 
virtual DataInpSpecclone () const =0
 
virtual int nElems () const
 
virtual bool isUndef (int idx=0) const =0
 
virtual bool hasLimits () const
 
virtual bool isInsideLimits (int idx=0) const
 
virtual const char * text (int idx=0) const =0
 
virtual bool setText (const char *, int idx=0)=0
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
virtual int getIntValue (int idx=0) const
 
virtual double getDValue (int idx=0) const
 
virtual float getFValue (int idx=0) const
 
virtual bool getBoolValue (int idx=0) const
 
virtual void setValue (int i, int idx=0)
 
virtual void setValue (double d, int idx=0)
 
virtual void setValue (float f, int idx=0)
 
virtual void setValue (bool b, int idx=0)
 
virtual int getDefaultIntValue (int idx=0) const
 
virtual double getDefaultValue (int idx=0) const
 
virtual float getDefaultfValue (int idx=0) const
 
virtual bool getDefaultBoolValue (int idx=0) const
 
virtual const char * getDefaultStringValue (int idx=0) const
 
virtual void setDefaultValue (int i, int idx=0)
 
virtual void setDefaultValue (double d, int idx=0)
 
virtual void setDefaultValue (float f, int idx=0)
 
virtual void setDefaultValue (bool b, int idx=0)
 
virtual void setDefaultValue (const char *s, int idx=0)
 
virtual const char * name (int idx=0) const
 
virtual DataInpSpecsetName (const char *, int idx=0)
 

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

mODTextTranslationClass (DataInpSpec) public DataInpSpec::DataInpSpec ( const DataInpSpec )
private
virtual DataInpSpec::~DataInpSpec ( )
inlineprivatevirtual

Member Function Documentation

virtual DataInpSpec* DataInpSpec::clone ( ) const
privatepure virtual
void DataInpSpec::fillPar ( IOPar ) const
private
virtual bool DataInpSpec::getBoolValue ( int  idx = 0) const
privatevirtual

Reimplemented in BoolInpSpec.

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

Reimplemented in BoolInpSpec.

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

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

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

Reimplemented in StringInpSpec.

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

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

virtual double DataInpSpec::getDValue ( int  idx = 0) const
privatevirtual
double DataInpSpec::getdValue ( int  idx = 0) const
inline
virtual float DataInpSpec::getFValue ( int  idx = 0) const
privatevirtual
float DataInpSpec::getfValue ( int  idx = 0) const
inline
virtual int DataInpSpec::getIntValue ( int  idx = 0) const
privatevirtual

Sets the values (with setText())

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

virtual bool DataInpSpec::hasLimits ( ) const
inlineprivatevirtual

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

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

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

virtual bool DataInpSpec::isUndef ( int  idx = 0) const
privatepure virtual
virtual const char* DataInpSpec::name ( int  idx = 0) const
privatevirtual
virtual int DataInpSpec::nElems ( ) const
inlineprivatevirtual

Reimplemented in PositionInpSpec, and NumInpIntervalSpec< T >.

virtual void DataInpSpec::setDefaultValue ( int  i,
int  idx = 0 
)
inlineprivatevirtual
virtual void DataInpSpec::setDefaultValue ( double  d,
int  idx = 0 
)
inlineprivatevirtual
virtual void DataInpSpec::setDefaultValue ( float  f,
int  idx = 0 
)
inlineprivatevirtual
virtual void DataInpSpec::setDefaultValue ( bool  b,
int  idx = 0 
)
inlineprivatevirtual
virtual void DataInpSpec::setDefaultValue ( const char *  s,
int  idx = 0 
)
inlineprivatevirtual
virtual DataInpSpec& DataInpSpec::setName ( const char *  ,
int  idx = 0 
)
privatevirtual
virtual bool DataInpSpec::setText ( const char *  ,
int  idx = 0 
)
privatepure virtual
void DataInpSpec::setType ( DataType  t)
protected
virtual void DataInpSpec::setValue ( int  i,
int  idx = 0 
)
privatevirtual
virtual void DataInpSpec::setValue ( double  d,
int  idx = 0 
)
privatevirtual
virtual void DataInpSpec::setValue ( float  f,
int  idx = 0 
)
privatevirtual
virtual void DataInpSpec::setValue ( bool  b,
int  idx = 0 
)
privatevirtual
virtual const char* DataInpSpec::text ( int  idx = 0) const
privatepure virtual
DataType DataInpSpec::type ( ) const
private
bool DataInpSpec::usePar ( const IOPar )
private

Saves the values (from text())

Member Data Documentation

TypeSet<int> DataInpSpec::nameidxs_
protected
BufferStringSet DataInpSpec::names_
protected
bool DataInpSpec::prefempty_
protected
DataType DataInpSpec::tp_
protected
const char* DataInpSpec::valuestr
staticprivate

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