OpendTect  7.0
Public Member Functions | List of all members
Attrib::EnumParam Class Reference

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

Inheritance diagram for Attrib::EnumParam:
[legend]

Public Member Functions

 EnumParam (const char *)
 
 EnumParam (const char *, int defval, bool isreq=true)
 
 ~EnumParam ()
 
void addEnum (const char *)
 
void addEnums (const char **)
 
EnumParamclone () const override
 
void fillDefStr (BufferString &) const override
 
BufferString getDefaultValue () const override
 
bool isSet () const
 
void setEnums (const EnumDef &)
 Enumdef is assumed to remain in memory. More...
 
void setSet (bool yn=true)
 
- Public Member Functions inherited from Attrib::ValParam
 ValParam (const char *key, DataInpSpec *)
 
 ValParam (const ValParam &)
 
virtual ~ValParam ()
 
ValParamclone () const override
 
void fillDefStr (BufferString &) const override
 
bool getBoolValue (int idx=0) const
 
bool getCompositeValue (BufferString &) const override
 
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
 
BufferString getDefaultValue () const override
 
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
 
bool isOK () const override
 
int nrValues () const
 
bool setCompositeValue (const char *) override
 
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 (const MultiID &, 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
virtual ~Param ()
 
StringView 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
bool isEqual (const Param &) const override
 
- Protected Member Functions inherited from Attrib::Param
 Param (const char *key)
 
 Param (const 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

Enum parameter that is used by an attribute.

<>

Constructor & Destructor Documentation

◆ EnumParam() [1/2]

Attrib::EnumParam::EnumParam ( const char *  )

◆ EnumParam() [2/2]

Attrib::EnumParam::EnumParam ( const char *  ,
int  defval,
bool  isreq = true 
)

◆ ~EnumParam()

Attrib::EnumParam::~EnumParam ( )

Member Function Documentation

◆ addEnum()

void Attrib::EnumParam::addEnum ( const char *  )

◆ addEnums()

void Attrib::EnumParam::addEnums ( const char **  )

◆ clone()

EnumParam* Attrib::EnumParam::clone ( ) const
overridevirtual

Implements Attrib::Param.

◆ fillDefStr()

void Attrib::EnumParam::fillDefStr ( BufferString ) const
overridevirtual

Implements Attrib::Param.

◆ getDefaultValue()

BufferString Attrib::EnumParam::getDefaultValue ( ) const
overridevirtual

Reimplemented from Attrib::Param.

◆ isSet()

bool Attrib::EnumParam::isSet ( ) const

◆ setEnums()

void Attrib::EnumParam::setEnums ( const EnumDef )

Enumdef is assumed to remain in memory.

◆ setSet()

void Attrib::EnumParam::setSet ( bool  yn = true)

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