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