43 Lithology(ID
id,
const char* nm,
bool por=
false);
45 : id_(l.id_) { *
this = l; }
48 {
return l.
id_ == id_; }
50 bool isUdf()
const {
return this == &undef(); }
51 static bool isUdf( ID
id ) {
return id == undef().id_; }
53 ID
id()
const {
return id_; }
55 bool porous()
const {
return porous_; }
83 int size()
const {
return lths_.size(); }
84 bool isEmpty()
const {
return lths_.isEmpty(); }
88 int indexOf(
const char* nm )
const {
return idxOf(nm,-2);}
89 bool isPresent(
const char* nm)
const {
return gtLith(nm,-2);}
93 Lithology*
get(
const char* nm ) {
return gtLith(nm,-2);}
94 const Lithology*
get(
const char* nm )
const {
return gtLith(nm,-2);}
98 enum PorSel { OnlyPorous, NotPorous, AllPor };
112 {
const int idx = idxOf(nm,
id);
return idx < 0 ? 0
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
Definition: stratlith.h:77
Notifier< LithologySet > anyChange
Definition: stratlith.h:104
virtual void erase()
Definition: manobjectset.h:37
bool & porous()
Definition: stratlith.h:54
Color color_
Definition: stratlith.h:65
PorSel
Definition: stratlith.h:98
void setEmpty()
Definition: stratlith.h:117
int indexOf(const char *nm) const
Definition: stratlith.h:88
Set of BufferString objects.
Definition: bufstringset.h:28
bool isUdf() const
Definition: stratlith.h:50
ID id() const
Definition: stratlith.h:53
Definition: callback.h:254
Set of pointers to objects.
Definition: commontypes.h:32
Lithology & getLith(int i)
Definition: stratlith.h:85
int indexOf(Lithology::ID id) const
Definition: stratlith.h:90
static bool isUdf(ID id)
Definition: stratlith.h:51
a name and an ID.
Definition: stratlith.h:37
int ID
Definition: stratlith.h:41
int size() const
Definition: stratlith.h:83
ManagedObjectSet< Lithology > lths_
Definition: stratlith.h:108
Lithology * gtLith(const char *nm, Lithology::ID id) const
Definition: stratlith.h:111
bool porous_
Definition: stratlith.h:64
const ObjectSet< Lithology > & lithologies() const
Definition: stratlith.h:121
Stratigraphy.
Definition: stratlevel.h:26
const Lithology & getLith(int i) const
Definition: stratlith.h:86
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
LithologySet()
Definition: stratlith.h:80
const Color & color() const
Definition: stratlith.h:57
Object with a name.
Definition: namedobj.h:35
Lithology(const Lithology &l)
Definition: stratlith.h:44
Color & color()
Definition: stratlith.h:56
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
bool isPresent(Lithology::ID id) const
Definition: stratlith.h:91
const ID id_
Definition: stratlith.h:63
ObjectSet where the objects contained are owned by this set.
Definition: manobjectset.h:23
ObjectSet< Lithology > & lithologies()
Definition: stratlith.h:122
bool isPresent(const char *nm) const
Definition: stratlith.h:89
bool isEmpty() const
Definition: stratlith.h:84
bool porous() const
Definition: stratlith.h:55
void reportAnyChange()
Definition: stratlith.h:103