35 , pattern_(c.pattern_)
46 {
return name() == c.
name(); }
49 {
return this == &unspecified(); }
51 static const Content& unspecified();
56 bool getApearanceFrom(
const char*);
65 return !ct || ct->isUnspecified();
77 int getIndexOf(
const char*)
const;
80 {
const int idx = getIndexOf(s);
return idx<0 ? 0 : (*this)[idx]; }
82 {
return const_cast<ContentSet*
>(
this)->getByName(s); }
Color color_
Definition: stratcontent.h:53
#define mExpClass(module)
Definition: commondefs.h:157
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
#define mGlobal(module)
Definition: commondefs.h:160
const Content & getContent(const char *s) const
Definition: stratcontent.h:84
bool isUnspecified(const Content *ct)
convenience: contents can be null or unspecified, handle in one go
Definition: stratcontent.h:63
Content * getByName(const char *s)
Definition: stratcontent.h:79
bool isUnspecified() const
Definition: stratcontent.h:48
const Content * getByName(const char *s) const
Definition: stratcontent.h:81
Content(const char *nm)
Definition: stratcontent.h:31
Set of pointers to objects.
Definition: commontypes.h:28
static const Content & unspecified()
Content(const Content &c)
Definition: stratcontent.h:33
~ContentSet()
Definition: stratcontent.h:75
set of names for stuff that can be inside porous layers
Definition: stratcontent.h:71
OD::FillPattern pattern_
Definition: stratcontent.h:54
Stratigraphy.
Definition: stratlevel.h:25
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
object with a name.
Definition: namedobj.h:20
stuff that can be inside porous layers
Definition: stratcontent.h:27
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:24
virtual const OD::String & name() const
Definition: namedobj.h:33
void deepErase(ObjectSet< T > &os)
empty the ObjectSet deleting all objects pointed to.
Definition: objectset.h:122