 |
OpendTect
6.6
|
Go to the documentation of this file.
14 #include "generalmod.h"
68 { add( spec.
clone() ); }
73 { specs_ += spec.
clone();
return *
this; }
80 Form* ret =
new Form( nm, *specs_[0] );
81 for (
int idx=1; idx<specs_.size(); idx++ )
109 { forms_ +=
new Form( nm, spec );
return *
this; }
111 { forms_ +=
new Form( nm, spec );
return *
this; }
113 { forms_ += frm;
return *
this; }
122 const Form&
form(
int idx )
const {
return *forms_[idx]; }
125 for (
int idx=0; idx<forms_.size(); idx++ )
126 if ( forms_[idx]->name() == formnm )
144 : pos_(rc), keyword_(kw) {}
146 : pos_(0,-1), val_(s) {}
149 {
return pos_.col() >= 0; }
151 {
return isInFile() && !keyword_.isEmpty();}
153 {
return !val_.isEmpty(); }
155 {
return !isInFile() && !isSpecified();}
157 {
return pos_ == v.
pos_ && val_ == v.
val_
171 : form_(0), unit_(0), coordsys_(0) {}
174 {
return ielem < elems_.size()
175 && elems_[ielem].isInFile(); }
177 {
return ielem < elems_.size()
178 && elems_[ielem].isKeyworded(); }
180 {
return ielem < elems_.size()
181 && elems_[ielem].isInFile(); }
183 {
return ielem >= elems_.size() ? 0
184 : elems_[ielem].val_.buf(); }
186 {
return elems_.size() > 0 && !elems_[0].isEmpty(); }
198 {
return mkZPos(isreq,withunits); }
200 {
return mkZPos(isreq,withunits,1); }
202 {
return mkZPos(isreq,withunits,-1); }
225 , eohtokencol_(-1) {}
238 {
return nrhdrlines_ < 0 && !eohtoken_.
isEmpty(); }
240 {
return needEOHToken() ?
mUdf(
int)
241 : nrhdrlines_ > 0 ? nrhdrlines_ : 0; }
243 {
return !eobtoken_.
isEmpty(); }
253 nrhdrlines_ = eohtokencol_ = 0;
const Form & form(int idx) const
Definition: tabledef.h:122
bool needsConversion() const
static TargetInfo * mkZPosition(bool isreq, bool withunits=true)
Definition: tabledef.h:197
object with a name.
Definition: namedobj.h:42
RowCol pos_
Definition: tabledef.h:160
@ Optional
Definition: tabledef.h:27
bool isEmpty() const
Definition: tabledef.h:154
bool isKeyworded() const
Definition: tabledef.h:150
Form & form(int idx)
Definition: tabledef.h:121
holds the 'value' of a certain selection
Definition: tabledef.h:140
static TargetInfo * mkHorPosition(bool isreq, bool wic=true, bool wll=false, bool wcrs=true)
form(0)=(X,Y), form(1)=inl/crl, form(1/2)=long/lat
virtual DataInpSpec * clone() const =0
void fillPar(IOPar &) const
TargetInfo & add(Form *frm)
Definition: tabledef.h:112
bool havePos(int ielem) const
Definition: tabledef.h:173
bool isOptional() const
Definition: tabledef.h:115
ConstRefMan< Coords::CoordSystem > coordsys_
Definition: tabledef.h:168
Selection()
Definition: tabledef.h:170
static TargetInfo * mkZPos(bool, bool wu=false, int zopt=0)
#define mExpClass(module)
Definition: commondefs.h:177
Selection selection_
Definition: tabledef.h:189
@ Other
Definition: odinst.h:44
bool isInFile(int ielem=0) const
Definition: tabledef.h:179
@ Other
Definition: propertyref.h:49
Definition: geom2dascio.h:20
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:81
int nrForms() const
Definition: tabledef.h:120
Selected element/positioning This selects the specific form and where/how it can be found in the file...
Definition: tabledef.h:137
ObjectSet< Form > forms_
Definition: tabledef.h:210
void usePar(const IOPar &)
TargetInfo(const char *nm, const DataInpSpec &spec, ReqSpec rs=Optional, PropertyRef::StdType p=PropertyRef::Other)
Definition: tabledef.h:100
A cartesian coordinate in 2D space.
Definition: coord.h:25
PropertyRef::StdType propertyType() const
Definition: tabledef.h:117
bool isHidden() const
Definition: tabledef.h:116
TargetInfo & add(const char *nm, DataInpSpec *spec=0)
Definition: tabledef.h:108
TargetInfo(const char *nm, DataInpSpec *spec, ReqSpec rs=Optional, PropertyRef::StdType p=PropertyRef::Other)
Definition: tabledef.h:95
ReqSpec req_
Definition: tabledef.h:208
bool isKeyworded(int ielem) const
Definition: tabledef.h:176
const char * getVal(int ielem) const
Definition: tabledef.h:182
BufferString val_
Definition: tabledef.h:162
BufferString keyword_
Definition: tabledef.h:161
Specification of input characteristics.
Definition: datainpspec.h:90
bool isEmpty() const
Definition: odstring.h:50
static TargetInfo * mkTimePosition(bool isreq, bool withunits=true)
Definition: tabledef.h:201
static TargetInfo * mkDepthPosition(bool isreq, bool withunits=true)
Definition: tabledef.h:199
Elem(const RowCol &rc, const char *kw=0)
Definition: tabledef.h:143
bool isSpecified() const
Definition: tabledef.h:152
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
TargetInfo(const char *nm, ReqSpec rs=Optional)
Definition: tabledef.h:90
Ref Data for a (usually petrophysical) property.
Definition: propertyref.h:43
Unit of Measure.
Definition: unitofmeasure.h:35
void deepErase(BufferStringSet &)
bool isFilled() const
Definition: tabledef.h:185
PropertyRef::StdType proptype_
Definition: tabledef.h:209
BufferString & setEmpty()
void setPropertyType(PropertyRef::StdType p)
Definition: tabledef.h:118
@ Hidden
Definition: tabledef.h:27
ReqSpec
Definition: tabledef.h:27
StdType
Definition: propertyref.h:46
Elem(const char *s)
Definition: tabledef.h:145
bool isInFile() const
Definition: tabledef.h:148
TargetInfo & add(const char *nm, const DataInpSpec &spec)
Definition: tabledef.h:110
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:274
const UnitOfMeasure * unit_
Definition: tabledef.h:167
IdxPair used for its row() and col().
Definition: rowcol.h:25
@ Required
Definition: tabledef.h:27
int formNr(const char *formnm) const
Definition: tabledef.h:123
Specifications for character string inputs.
Definition: datainpspec.h:588
Coord convert(const Coord &) const
TypeSet< Elem > elems_
Definition: tabledef.h:166
Description of a Logical piece of information.
Definition: tabledef.h:42
Elem()
Definition: tabledef.h:141
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
virtual ObjectSet * clone() const
Definition: objectset.h:50
int form_
Definition: tabledef.h:165
Sets of (small) copyable elements.
Definition: commontypes.h:29
~TargetInfo()
Definition: tabledef.h:106
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021