1 #ifndef attribparambase_h 2 #define attribparambase_h 15 #include "attributeenginemod.h" 39 Param(
const char* key);
43 virtual Param* clone()
const = 0;
46 {
return _isEqual( p ); }
48 {
return !_isEqual( p ); }
50 virtual bool isOK()
const = 0;
70 void setKey(
const char* newkey) { key_ = newkey; }
84 return p.
key_!=key_ ?
false : isEqual( p );
86 virtual bool isEqual(
const Param&)
const = 0;
103 virtual bool isOK()
const;
105 int nrValues()
const;
106 virtual int getIntValue(
int idx=0)
const;
107 virtual float getFValue(
int idx=0)
const;
108 virtual double getDValue(
int idx=0)
const;
109 bool getBoolValue(
int idx=0)
const;
110 const char* getStringValue(
int idx=0)
const;
112 void setValue(
int,
int idx=0);
113 void setValue(
float,
int idx=0);
114 void setValue(
bool,
int idx=0);
115 void setValue(
const char*,
int idx=0);
116 void setValue(
double,
int idx=0);
118 virtual int getDefaultIntValue(
int idx=0)
const;
119 virtual float getDefaultfValue(
int idx=0)
const;
120 bool getDefaultBoolValue(
int idx=0)
const;
121 const char* getDefaultStringValue(
int idx=0)
const;
122 virtual double getDefaultdValue(
int idx=0)
const;
124 void setDefaultValue(
int,
int idx=0);
125 void setDefaultValue(
float,
int idx=0);
126 void setDefaultValue(
bool,
int idx=0);
127 void setDefaultValue(
const char*,
int idx=0);
128 void setDefaultValue(
double,
int idx=0);
133 virtual bool setCompositeValue(
const char*);
141 virtual bool isEqual(
const Param&)
const;
145 {
return getFValue( idx ); }
147 {
return getDValue( idx ); }
Attribute Value Parameter.
Definition: attribparambase.h:94
#define mExpClass(module)
Definition: commondefs.h:160
DataInpSpec * spec_
Definition: attribparambase.h:139
bool isEnabled() const
Definition: attribparambase.h:52
void setKey(const char *newkey)
Definition: attribparambase.h:70
virtual bool setValues(BufferStringSet &)
Definition: attribparambase.h:64
OD::String that holds an existing text string.
Definition: fixedstring.h:29
float getfValue(int idx=0) const
Definition: attribparambase.h:144
bool enabled_
Definition: attribparambase.h:79
Set of BufferString objects.
Definition: bufstringset.h:28
virtual ~Param()
Definition: attribparambase.h:41
bool isRequired() const
Definition: attribparambase.h:54
BufferString key_
Definition: attribparambase.h:76
bool operator!=(const Param &p) const
Definition: attribparambase.h:47
FixedString getKey() const
Definition: attribparambase.h:58
bool required_
Definition: attribparambase.h:80
void setEnabled(bool yn=true)
Definition: attribparambase.h:53
Specification of input characteristics.
Definition: datainpspec.h:89
const DataInpSpec * getSpec() const
Definition: attribparambase.h:131
bool operator==(const Param &p) const
Definition: attribparambase.h:45
void setRequired(bool yn=true)
Definition: attribparambase.h:55
DataInpSpec * getSpec()
Definition: attribparambase.h:130
A parameter that is used by an attribute.
Definition: attribparambase.h:36
bool isGroup() const
Definition: attribparambase.h:56
const char * buf() const
Definition: odstring.h:47
double getdValue(int idx=0) const
Definition: attribparambase.h:146
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
virtual BufferString getDefaultValue() const
Definition: attribparambase.h:69
bool isgroup_
Definition: attribparambase.h:77
virtual BufferString getDefaultValue() const
Definition: attribparambase.h:135
virtual bool setCompositeValue(const char *)
Definition: attribparambase.h:61
bool _isEqual(const Param &p) const
Definition: attribparambase.h:82
Semblance Attribute.
Definition: attribdataholder.h:25