 |
OpendTect
6.6
|
Go to the documentation of this file.
15 #include "generalmod.h"
16 #include "generalmod.h"
30 struct PropRef_ThickRef_Man;
47 Anis, Area, Class, Comp, Den, Dist, ElaRa,
ElPot,
48 GR, Imp, Perm, Pres, PresGrad, PresWt, Res,
Son,
56 , stdtype_(t), mathdef_(0), defval_(nullptr)
60 , mathdef_(0), defval_(nullptr)
61 , mn_(nullptr) { *
this = pr; }
65 {
return name() == pr.
name(); }
67 {
return name() != pr.
name(); }
75 {
return stdtype_ == t; }
77 {
return hasType(pr.
stdType()); }
94 inline bool isThickness()
const {
return this == &thickness(); }
137 const char* nm2=0,
const char* nm3=0);
152 {
add(pr);
return *
this; }
176 {
return indexOf( prnm ) >= 0; }
184 return idx < 0 ? 0 : (*this)[idx]; }
Source
Definition: repos.h:24
const PropertyRefSet & PROPS()
PropertyRefSet & operator=(const PropertyRefSet &)
const PropertyRef * find(const char *nm) const
Definition: propertyref.h:131
Definition: propertyref.h:117
int indexOf(const PropertyRef *pr) const
Definition: propertyref.h:143
object with a name.
Definition: namedobj.h:42
StdType stdtype_
Definition: propertyref.h:102
bool subselect(PropertyRef::StdType, ObjectSet< const PropertyRef > &) const
Velocity.
Definition: velocityfunction.h:32
FixedString Time()
Definition: keystrs.h:163
static const PropertyRef & thickness()
use this always. It has automatic defaults from SI()
@ Vol
Definition: seistype.h:32
@ Temp
Definition: repos.h:24
#define mGlobal(module)
Definition: commondefs.h:180
int indexOf(const char *) const
bool isThickness() const
Definition: propertyref.h:94
Set of BufferString objects.
Definition: bufstringset.h:26
bool isPresent(const PropertyRef *pr) const
Definition: propertyref.h:179
bool isPresent(const char *prnm) const
Definition: propertyref.h:175
MathProperty * mathdef_
Definition: propertyref.h:104
#define mExpClass(module)
Definition: commondefs.h:177
@ Other
Definition: odinst.h:44
const PropertyRef * getByName(const char *nm) const
Definition: propertyref.h:182
StdType stdType() const
Definition: propertyref.h:73
static const char * standardPVelStr()
Definition: propertyref.h:97
float commonValue() const
A (usually petrophysical) property of some object.
Definition: property.h:33
Definition: mnemonics.h:26
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:81
virtual PropertyRefSet & doAdd(PropertyRef *pr)
Definition: propertyref.h:151
virtual const name_type & name() const
Definition: namedobj.h:54
Definition: propertyref.h:166
OpendTect standard ascii format file writing.
Definition: ascstream.h:32
virtual bool isPresent(const T *) const
Definition: objectset.h:426
PropertyRefSelection subselect(PropertyRef::StdType) const
const MathProperty & fixedDef() const
be sure hasFixedDef() returns true!
Definition: propertyref.h:84
const BufferStringSet & aliases() const
Definition: propertyref.h:83
static const char * standardSVelAliasStr()
Definition: propertyref.h:96
PropertyRefSet(const PropertyRefSet &prs)
Definition: propertyref.h:121
bool hasType(StdType t) const
Definition: propertyref.h:74
BufferStringSet::idx_type indexOf(const BufferStringSet &, const char *)
PropertyRef * fnd(const char *) const
BufferString mn_
Definition: propertyref.h:105
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:90
static const PropertyRef & undef()
bool isCompatibleWith(const PropertyRef &pr) const
Definition: propertyref.h:76
bool isPresent(const PropertyRef *pr) const
Definition: propertyref.h:141
int find(const char *) const
int indexOf(const char *) const
@ Son
Definition: propertyref.h:48
Property * defval_
Definition: propertyref.h:90
static const char * standardSVelStr()
Definition: propertyref.h:95
bool save(Repos::Source) const
@ ElPot
Definition: propertyref.h:47
bool hasFixedDef() const
Definition: propertyref.h:69
void readFrom(ascistream &)
@ Volum
Definition: propertyref.h:49
static PropertyRefSelection getAll(PropertyRef::StdType)
BufferString getMnemonic() const
int indexOf(PropertyRef::StdType, int occ=0) const
void usePar(const IOPar &)
PropertyRef * find(const char *nm)
Definition: propertyref.h:130
void fillPar(IOPar &) const
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
Ref Data for a (usually petrophysical) property.
Definition: propertyref.h:43
void setMnemonic(BufferString mn)
Definition: propertyref.h:71
bool isKnownAs(const char *) const
void setStdType(StdType t)
Definition: propertyref.h:78
virtual idx_type indexOf(const T *) const
Definition: objectset.h:420
void setFixedDef(const MathProperty *)
copy will be made
Calculated property.
Definition: mathproperty.h:32
PropertyRef(const PropertyRef &pr)
Definition: propertyref.h:58
PropertyRefSet & ePROPS()
Definition: propertyref.h:162
mDeclareEnumUtils(StdType) static StdType surveyZType()
StdType
Definition: propertyref.h:46
PropertyRef(const char *nm, StdType t=Other)
Definition: propertyref.h:54
OpendTect standard ascii format file reading.
Definition: ascstream.h:83
static const char * standardPVelAliasStr()
Definition: propertyref.h:98
static PropertyRefSelection getAll(bool with_thickness=true, const PropertyRef *exclude=0)
BufferStringSet aliases_
Definition: propertyref.h:103
BufferStringSet & aliases()
Definition: propertyref.h:82
bool writeTo(ascostream &) const
int indexOf(const PropertyRef *pr) const
Definition: propertyref.h:177
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
bool isPresent(const char *nm) const
Definition: propertyref.h:126
static void setThickness(const PropertyRef *)
int ensurePresent(PropertyRef::StdType, const char *nm1, const char *nm2=0, const char *nm3=0)
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021