16 #include "generalmod.h" 17 #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) {}
58 : NamedObject(pr.name())
59 , mathdef_(0) { *
this = pr; }
63 {
return name() == pr.
name(); }
65 {
return name() != pr.
name(); }
66 bool isKnownAs(
const char*)
const;
71 {
return stdtype_ == t; }
73 {
return hasType(pr.
stdType()); }
99 float commonValue()
const;
133 :
ObjectSet<PropertyRef>() { *
this = prs; }
139 int indexOf(
const char*)
const;
141 inline PropertyRef*
find(
const char* nm ) {
return fnd(nm); }
142 inline const PropertyRef*
find(
const char* nm )
const {
return fnd(nm); }
144 int add(PropertyRef*);
148 const char* nm2=0,
const char* nm3=0);
161 PropertyRef*
fnd(
const char*)
const;
163 {
add(pr);
return *
this; }
183 int indexOf(
const char*)
const;
184 int find(
const char*)
const;
187 {
return indexOf( prnm ) >= 0; }
188 inline int indexOf(
const PropertyRef* pr )
const 193 inline const PropertyRef*
get(
const char* nm )
const 195 return idx < 0 ? 0 : (*this)[idx]; }
200 const PropertyRef* exclude=0);
#define mExpClass(module)
Definition: commondefs.h:160
Velocity.
Definition: velocityfunction.h:32
BufferStringSet aliases_
Definition: propertyref.h:115
Calculated property.
Definition: mathproperty.h:32
MathProperty * mathdef_
Definition: propertyref.h:116
const PropertyRefSet & PROPS()
Definition: propertyref.h:176
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
StdType stdtype_
Definition: propertyref.h:114
bool isThickness() const
Definition: propertyref.h:106
#define mStruct(module)
Definition: commondefs.h:165
#define mGlobal(module)
Definition: commondefs.h:163
DispDefs disp_
Definition: propertyref.h:100
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
OpendTect standard ascii format file writing.
Definition: ascstream.h:32
Ref Data for a (usually petrophysical) property.
Definition: propertyref.h:42
const BufferStringSet & aliases() const
Definition: propertyref.h:79
PropertyRef * find(const char *nm)
Definition: propertyref.h:141
void readFrom(ascistream &)
virtual bool isPresent(const T *) const
Definition: objectset.h:344
const MathProperty & fixedDef() const
be sure hasFixedDef() returns true!
Definition: propertyref.h:80
Set of BufferString objects.
Definition: bufstringset.h:28
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
const PropertyRef * find(const char *nm) const
Definition: propertyref.h:142
PropertyRefSet & operator=(const PropertyRefSet &)
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
Set of pointers to objects.
Definition: commontypes.h:32
bool isCompatibleWith(const PropertyRef &pr) const
Definition: propertyref.h:72
Definition: propertyref.h:48
bool isPresent(const PropertyRef *pr) const
Definition: propertyref.h:190
static const char * standardPVelStr()
Definition: propertyref.h:109
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Definition: propertyref.h:127
int ensurePresent(PropertyRef::StdType, const char *nm1, const char *nm2=0, const char *nm3=0)
virtual PropertyRefSet & doAdd(PropertyRef *pr)
Definition: propertyref.h:162
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
Source
Definition: repos.h:25
static const char * standardSVelStr()
Definition: propertyref.h:107
bool isPresent(const PropertyRef *pr) const
Definition: propertyref.h:152
void setStdType(StdType t)
Definition: propertyref.h:74
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
PropertyRef(const PropertyRef &pr)
Definition: propertyref.h:57
static const char * standardSVelAliasStr()
Definition: propertyref.h:108
bool hasType(StdType t) const
Definition: propertyref.h:70
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
const T * find(const ObjectSet< T > &os, const S &val)
Get const object in set.
Definition: objectset.h:183
OpendTect standard ascii format file reading.
Definition: ascstream.h:83
bool isPresent(const char *prnm) const
Definition: propertyref.h:186
Definition: propertyref.h:49
bool isPresent(const char *nm) const
Definition: propertyref.h:137
FixedString Time()
Definition: keystrs.h:132
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
StdType stdType() const
Definition: propertyref.h:69
Object with a name.
Definition: namedobj.h:35
bool writeTo(ascostream &) const
A (usually petrophysical) property of some object.
Definition: property.h:31
Definition: seistype.h:33
bool save(Repos::Source) const
static const char * standardPVelAliasStr()
Definition: propertyref.h:110
int indexOf(const PropertyRef *pr) const
Definition: propertyref.h:154
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
StdType
Definition: propertyref.h:46
Definition: propertyref.h:47
BufferStringSet & aliases()
Definition: propertyref.h:78
PropertyRef * fnd(const char *) const
int indexOf(const PropertyRef *pr) const
Definition: propertyref.h:188
PropertyRefSet(const PropertyRefSet &prs)
Definition: propertyref.h:132
virtual const OD::String & name() const
Definition: namedobj.h:47
bool hasFixedDef() const
Definition: propertyref.h:67
virtual size_type indexOf(const T *) const
Definition: objectset.h:337
bool subselect(PropertyRef::StdType, ObjectSet< const PropertyRef > &) const
PropertyRefSet & ePROPS()
Definition: propertyref.h:173
static Color Black()
Definition: color.h:77