OpendTect  6.6
Public Member Functions | List of all members
Attrib::BinIDParam Class Reference

A parameter that is used by an attribute. More...

Inheritance diagram for Attrib::BinIDParam:
[legend]

Public Member Functions

 BinIDParam (const char *)
 
 BinIDParam (const char *, const BinID &, bool isreq=true)
 
BinIDParamclone () const
 
virtual bool getCompositeValue (BufferString &) const
 
BinID getDefaultBinIDValue () const
 
BufferString getDefaultValue () const
 
BinID getValue () const
 
virtual bool setCompositeValue (const char *)
 
void setDefaultValue (const BinID &)
 
void setLimits (const Interval< int > &inlrg, const Interval< int > &crlrg)
 
void setLimits (int mininl, int maxinl, int mincrl, int maxcrl)
 
void toString (BufferString &, const BinID &) const
 
- Public Member Functions inherited from Attrib::ValParam
 ValParam (const char *key, DataInpSpec *)
 
 ValParam (const ValParam &)
 
 ~ValParam ()
 
virtual void fillDefStr (BufferString &) const
 
bool getBoolValue (int idx=0) const
 
bool getDefaultBoolValue (int idx=0) const
 
virtual double getDefaultdValue (int idx=0) const
 
virtual float getDefaultfValue (int idx=0) const
 
virtual int getDefaultIntValue (int idx=0) const
 
const char * getDefaultStringValue (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 int getIntValue (int idx=0) const
 
DataInpSpecgetSpec ()
 
const DataInpSpecgetSpec () const
 
const char * getStringValue (int idx=0) const
 
virtual bool isOK () const
 
int nrValues () const
 
void setDefaultValue (bool, int idx=0)
 
void setDefaultValue (const char *, int idx=0)
 
void setDefaultValue (double, int idx=0)
 
void setDefaultValue (float, int idx=0)
 
void setDefaultValue (int, int idx=0)
 
void setValue (bool, int idx=0)
 
void setValue (const char *, int idx=0)
 
void setValue (double, int idx=0)
 
void setValue (float, int idx=0)
 
void setValue (int, int idx=0)
 
- Public Member Functions inherited from Attrib::Param
 Param (const char *key)
 
 Param (const Param &)
 
virtual ~Param ()
 
FixedString getKey () const
 
bool isEnabled () const
 
bool isGroup () const
 
bool isRequired () const
 
bool operator!= (const Param &p) const
 
bool operator== (const Param &p) const
 
void setEnabled (bool yn=true)
 
void setKey (const char *newkey)
 
void setRequired (bool yn=true)
 
virtual bool setValues (BufferStringSet &)
 

Additional Inherited Members

- Protected Member Functions inherited from Attrib::ValParam
virtual bool isEqual (const Param &) const
 
- Protected Member Functions inherited from Attrib::Param
bool _isEqual (const Param &p) const
 
- Protected Attributes inherited from Attrib::ValParam
DataInpSpecspec_
 
- Protected Attributes inherited from Attrib::Param
bool enabled_
 
bool isgroup_
 
BufferString key_
 
bool required_
 

Detailed Description

A parameter that is used by an attribute.

Each attribute has a definition string that defines how the attribute is computed. The definition string has the format:

AttribNameWithoutSpaces param1=value1 param2=value2,value3

The paramater thus has a key (e.g. param1) and one or more associated values.

Subclasses are used to provide accurate parameter definition for parameters of each and every type.

<>

Constructor & Destructor Documentation

◆ BinIDParam() [1/2]

Attrib::BinIDParam::BinIDParam ( const char *  )

◆ BinIDParam() [2/2]

Attrib::BinIDParam::BinIDParam ( const char *  ,
const BinID ,
bool  isreq = true 
)

Member Function Documentation

◆ clone()

BinIDParam* Attrib::BinIDParam::clone ( ) const
virtual

Reimplemented from Attrib::ValParam.

◆ getCompositeValue()

virtual bool Attrib::BinIDParam::getCompositeValue ( BufferString ) const
virtual

Put all values into one string.

Reimplemented from Attrib::ValParam.

◆ getDefaultBinIDValue()

BinID Attrib::BinIDParam::getDefaultBinIDValue ( ) const

◆ getDefaultValue()

BufferString Attrib::BinIDParam::getDefaultValue ( ) const
virtual

Reimplemented from Attrib::ValParam.

◆ getValue()

BinID Attrib::BinIDParam::getValue ( ) const

◆ setCompositeValue()

virtual bool Attrib::BinIDParam::setCompositeValue ( const char *  )
virtual

Set all values from one composite string.

Reimplemented from Attrib::ValParam.

◆ setDefaultValue()

void Attrib::BinIDParam::setDefaultValue ( const BinID )

◆ setLimits() [1/2]

void Attrib::BinIDParam::setLimits ( const Interval< int > &  inlrg,
const Interval< int > &  crlrg 
)

◆ setLimits() [2/2]

void Attrib::BinIDParam::setLimits ( int  mininl,
int  maxinl,
int  mincrl,
int  maxcrl 
)

◆ toString()

void Attrib::BinIDParam::toString ( BufferString ,
const BinID  
) const

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