13 #include "generalmod.h" 44 bool isDifferentFrom(
const Level&)
const;
51 static const
Level& undef();
99 bool isEmpty()
const {
return size() < 1; }
100 size_type size()
const;
103 bool isPresent(ID)
const;
104 bool isPresent(
const char*)
const;
105 ID getIDByName(
const char*)
const;
106 ID getIDByIdx(IdxType)
const;
108 IdxType
indexOf(
const char*)
const;
111 Color levelColor(ID)
const;
112 IOPar levelPars(ID)
const;
115 Level getByIdx(
int)
const;
116 Level getByName(
const char*)
const;
119 ID add(
const char*,
const Color&);
122 ID
set(
const Level&);
131 bool readFrom(
const char*);
132 bool writeTo(
const char*)
const;
135 static LevelSet* createStd(
const char*);
144 int gtIdxOf(
const char*,ID)
const;
145 Level gtLvl(
int)
const;
147 ID doSet(
const Level&,
bool* isnew=0);
155 friend class LevelSetMgr;
Threads::Atomic< ID::IDType > curlevelid_
Definition: stratlevel.h:142
#define mExpClass(module)
Definition: commondefs.h:157
Strat::Level::ID lvlid_
Definition: stratlevel.h:150
Set of Stratigraphic levels.
Definition: stratlevel.h:86
int ChangeType
Definition: monitorable.h:80
Monitorable object with a name. All but name() are MT-safe.
Definition: namedmonitorable.h:20
FixedString Level()
Definition: keystrs.h:78
#define mGlobal(module)
Definition: commondefs.h:160
static ChangeType cParsChange()
Definition: stratlevel.h:56
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
Definition: sharedobject.h:18
int size_type
Definition: objectset.h:37
bool isEmpty() const
Definition: stratlevel.h:99
#define mImplSimpleMonitoredGet(fnnm, typ, memb)
Defines simple MT-safe copyable member get.
Definition: monitor.h:21
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
ObjectSet< Level > lvls_
Definition: stratlevel.h:141
static ChangeType cLevelAdded()
Definition: stratlevel.h:126
const LevelSet & unpushedLVLS()
#define mDeclMonitorableAssignment(clss)
like mDeclAbstractMonitorableAssignment but for non-abstract subclasses. Implements the clone() metho...
Definition: monitor.h:111
#define mDeclInstanceCreatedNotifierAccess(clss)
Definition: notify.h:235
Set of pointers to objects.
Definition: commontypes.h:28
Color color_
Definition: stratlevel.h:62
Stratigraphic level.
Definition: stratlevel.h:35
static ChangeType cLevelToBeRemoved()
Definition: stratlevel.h:127
Level::ID ID
Definition: stratlevel.h:91
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
size_type IdxType
Definition: stratlevel.h:93
#define mImplSimpleMonitoredGetSet(pfx, fnnmget, fnnmset, typ, memb, chgtyp)
Defines simple MT-safe copyable member access.
Definition: monitor.h:39
ObjectSet< Level >::size_type size_type
Definition: stratlevel.h:92
ID add(const Level &lvl)
Definition: stratlevel.h:123
Source
Definition: repos.h:23
#define mDefIntegerIDType(IntType, classname)
Definition: integerid.h:83
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
OpendTect standard ascii format file reading.
Definition: ascstream.h:81
IOPar pars_
Definition: stratlevel.h:63
LevelSet & eLVLS()
Definition: stratlevel.h:160
Stratigraphy.
Definition: stratlevel.h:25
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
const ID id_
Definition: stratlevel.h:61
BufferString getStdFileName(const char *inpnm, const char *basenm)
example: getStdFileName("North Sea","Levels")
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:24
FixedString ID()
Definition: keystrs.h:71
void pushLevelSet(LevelSet *)