OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Attrib::ParamGroup< PT > Class Template Reference

Attrib::Param that contains many (a set) Attrib::Param of one kind. More...

Inheritance diagram for Attrib::ParamGroup< PT >:
[legend]

Public Member Functions

 ParamGroup (int startsz, const char *prefix, const PT &templ)
 
 ParamGroup (const ParamGroup &)
 
 ~ParamGroup ()
 
ParamGroup< PT > * clone () const
 
bool isOK () const
 
const char * errMsg () const
 
bool setValues (BufferStringSet &)
 
bool getCompositeValue (BufferString &) const
 
void fillDefStr (BufferString &) const
 
Paramoperator[] (int idx)
 
const Paramoperator[] (int idx) const
 
void setSize (int)
 
int size () const
 
int isEmpty () const
 
const char * getPrefix () const
 
- Public Member Functions inherited from Attrib::Param
 Param (const char *key)
 
 Param (const Param &)
 
virtual ~Param ()
 
bool operator== (const Param &p) const
 
bool operator!= (const Param &p) const
 
bool isEnabled () const
 
void setEnabled (bool yn=true)
 
bool isRequired () const
 
void setRequired (bool yn=true)
 
bool isGroup () const
 
FixedString getKey () const
 
virtual bool setCompositeValue (const char *)
 
virtual BufferString getDefaultValue () const
 
void setKey (const char *newkey)
 

Protected Member Functions

int getSize () const
 
bool isEqual (const Param &) const
 
- Protected Member Functions inherited from Attrib::Param
bool _isEqual (const Param &p) const
 

Protected Attributes

int sz_
 
const BufferString prefix_
 
PT templ_
 
ObjectSet< PT > params_
 
BufferString errmsg_
 
- Protected Attributes inherited from Attrib::Param
BufferString key_
 
bool isgroup_
 
bool enabled_
 
bool required_
 

Detailed Description

template<class PT>
class Attrib::ParamGroup< PT >

Attrib::Param that contains many (a set) Attrib::Param of one kind.

It's made for parameters where you don't know how many are required. An example can be positions, where the number of positions are unknown at the beginning of parsing.

The Attrib::ParamGroup have a prefix and constructs parameter names on the form prefix + figure:

pos0, pos1, ..., posN.

The Attrib::ParamGroup is constructed by: Attrib::ParamGroup( int startsz, const char* prefix, const PT& templ ),

where startsz is the number of instances at the beginning, templ is a a template for the parameters that should be constructed.

Constructor & Destructor Documentation

template<class PT >
Attrib::ParamGroup< PT >::ParamGroup ( int  startsz,
const char *  prefix,
const PT &  templ 
)
inline
template<class PT >
Attrib::ParamGroup< PT >::ParamGroup ( const ParamGroup< PT > &  a)
inline
template<class PT >
Attrib::ParamGroup< PT >::~ParamGroup ( )
inline

Member Function Documentation

template<class PT >
ParamGroup< PT > * Attrib::ParamGroup< PT >::clone ( ) const
inlinevirtual

Implements Attrib::Param.

template<class PT >
const char * Attrib::ParamGroup< PT >::errMsg ( ) const
inline
template<class PT >
void Attrib::ParamGroup< PT >::fillDefStr ( BufferString res) const
inlinevirtual

Implements Attrib::Param.

template<class PT >
bool Attrib::ParamGroup< PT >::getCompositeValue ( BufferString ) const
inlinevirtual

Put all values into one string.

Implements Attrib::Param.

template<class PT>
const char* Attrib::ParamGroup< PT >::getPrefix ( ) const
inline
template<class PT >
int Attrib::ParamGroup< PT >::getSize ( ) const
inlineprotected
template<class PT>
int Attrib::ParamGroup< PT >::isEmpty ( ) const
inline
template<class PT >
bool Attrib::ParamGroup< PT >::isEqual ( const Param b) const
inlineprotectedvirtual

Implements Attrib::Param.

template<class PT >
bool Attrib::ParamGroup< PT >::isOK ( ) const
inlinevirtual

Implements Attrib::Param.

template<class PT>
Param& Attrib::ParamGroup< PT >::operator[] ( int  idx)
inline
template<class PT>
const Param& Attrib::ParamGroup< PT >::operator[] ( int  idx) const
inline
template<class PT >
void Attrib::ParamGroup< PT >::setSize ( int  nsz)
inline
template<class PT >
bool Attrib::ParamGroup< PT >::setValues ( BufferStringSet )
inlinevirtual

Set all values from multiple strings.

Reimplemented from Attrib::Param.

template<class PT>
int Attrib::ParamGroup< PT >::size ( ) const
inline

Member Data Documentation

template<class PT>
BufferString Attrib::ParamGroup< PT >::errmsg_
protected
template<class PT>
ObjectSet<PT> Attrib::ParamGroup< PT >::params_
protected
template<class PT>
const BufferString Attrib::ParamGroup< PT >::prefix_
protected
template<class PT>
int Attrib::ParamGroup< PT >::sz_
protected
template<class PT>
PT Attrib::ParamGroup< PT >::templ_
protected

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