14 #include "generalmod.h" 15 #include "generalmod.h" 28 struct PropRef_ThickRef_Man;
45 Anis, Area, Class, Comp, Den, Dist, ElaRa,
ElPot,
46 GR, Imp, Perm, Pres, PresWt, Res, Son,
Temp,
Time,
54 , stdtype_(t), mathdef_(0) {}
56 : NamedObject(pr.name())
57 , mathdef_(0) { *
this = pr; }
61 {
return name() == pr.
name(); }
63 {
return name() != pr.
name(); }
64 bool isKnownAs(
const char*)
const;
69 {
return stdtype_ == t; }
71 {
return hasType(pr.
stdType()); }
97 float commonValue()
const;
131 :
ObjectSet<PropertyRef>() { *
this = prs; }
137 int indexOf(
const char*)
const;
139 inline PropertyRef*
find(
const char* nm ) {
return fnd(nm); }
140 inline const PropertyRef*
find(
const char* nm )
const {
return fnd(nm); }
142 int add(PropertyRef*);
146 const char* nm2=0,
const char* nm3=0);
159 PropertyRef*
fnd(
const char*)
const;
161 {
add(pr);
return *
this; }
181 int indexOf(
const char*)
const;
182 int find(
const char*)
const;
185 {
return indexOf( prnm ) >= 0; }
186 inline int indexOf(
const PropertyRef* pr )
const 191 inline const PropertyRef*
getByName(
const char* nm )
const 193 return idx < 0 ? 0 : (*this)[idx]; }
198 const PropertyRef* exclude=0);
#define mExpClass(module)
Definition: commondefs.h:157
Velocity.
Definition: velocityfunction.h:30
BufferStringSet aliases_
Definition: propertyref.h:113
Calculated property.
Definition: mathproperty.h:30
MathProperty * mathdef_
Definition: propertyref.h:114
const PropertyRefSet & PROPS()
Definition: propertyref.h:174
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
StdType stdtype_
Definition: propertyref.h:112
bool isThickness() const
Definition: propertyref.h:104
#define mStruct(module)
Definition: commondefs.h:162
#define mGlobal(module)
Definition: commondefs.h:160
DispDefs disp_
Definition: propertyref.h:98
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
OpendTect standard ascii format file writing.
Definition: ascstream.h:30
Ref Data for a (usually petrophysical) property.
Definition: propertyref.h:40
const BufferStringSet & aliases() const
Definition: propertyref.h:77
PropertyRef * find(const char *nm)
Definition: propertyref.h:139
void readFrom(ascistream &)
virtual bool isPresent(const T *) const
Definition: objectset.h:348
const MathProperty & fixedDef() const
be sure hasFixedDef() returns true!
Definition: propertyref.h:78
Set of BufferString objects.
Definition: bufstringset.h:25
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:173
const PropertyRef * find(const char *nm) const
Definition: propertyref.h:140
PropertyRefSet & operator=(const PropertyRefSet &)
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:188
Set of pointers to objects.
Definition: commontypes.h:28
bool isCompatibleWith(const PropertyRef &pr) const
Definition: propertyref.h:70
bool isPresent(const PropertyRef *pr) const
Definition: propertyref.h:188
static const char * standardPVelStr()
Definition: propertyref.h:107
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
const PropertyRef * getByName(const char *nm) const
Definition: propertyref.h:191
Definition: propertyref.h:125
int ensurePresent(PropertyRef::StdType, const char *nm1, const char *nm2=0, const char *nm3=0)
virtual PropertyRefSet & doAdd(PropertyRef *pr)
Definition: propertyref.h:160
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:270
Source
Definition: repos.h:23
static const char * standardSVelStr()
Definition: propertyref.h:105
bool isPresent(const PropertyRef *pr) const
Definition: propertyref.h:150
void setStdType(StdType t)
Definition: propertyref.h:72
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:60
PropertyRef(const PropertyRef &pr)
Definition: propertyref.h:55
static const char * standardSVelAliasStr()
Definition: propertyref.h:106
bool hasType(StdType t) const
Definition: propertyref.h:68
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
const T * find(const ObjectSet< T > &os, const S &val)
Get const object in set.
Definition: objectset.h:187
OpendTect standard ascii format file reading.
Definition: ascstream.h:81
bool isPresent(const char *prnm) const
Definition: propertyref.h:184
Definition: propertyref.h:47
bool isPresent(const char *nm) const
Definition: propertyref.h:135
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
StdType stdType() const
Definition: propertyref.h:67
Definition: propertyref.h:46
object with a name.
Definition: namedobj.h:20
bool writeTo(ascostream &) const
A (usually petrophysical) property of some object.
Definition: property.h:29
Definition: seistype.h:31
bool save(Repos::Source) const
static const char * standardPVelAliasStr()
Definition: propertyref.h:108
int indexOf(const PropertyRef *pr) const
Definition: propertyref.h:152
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:24
StdType
Definition: propertyref.h:44
Definition: propertyref.h:45
BufferStringSet & aliases()
Definition: propertyref.h:76
PropertyRef * fnd(const char *) const
int indexOf(const PropertyRef *pr) const
Definition: propertyref.h:186
PropertyRefSet(const PropertyRefSet &prs)
Definition: propertyref.h:130
virtual const OD::String & name() const
Definition: namedobj.h:33
bool hasFixedDef() const
Definition: propertyref.h:65
virtual size_type indexOf(const T *) const
Definition: objectset.h:341
bool subselect(PropertyRef::StdType, ObjectSet< const PropertyRef > &) const
PropertyRefSet & ePROPS()
Definition: propertyref.h:171
static Color Black()
Definition: color.h:76