1 #ifndef horizonrelation_h 2 #define horizonrelation_h 16 #include "earthmodelmod.h" 44 bool hasChild(
const Node* descendant)
const;
50 static const char* sKeyChildIDs();
51 static const char* sKeyLastModified();
55 RelationTree(
bool is2d,
bool read=
true);
60 void removeNode(
const MultiID&,
bool write=
true);
61 void addRelation(
const MultiID& id1,
62 const MultiID& id2,
bool write=
true);
65 int findRelation(
const MultiID&,
81 int findNode(
const MultiID&)
const;
83 static const char* sKeyHorizonRelations();
85 bool read(
bool removeoutdated);
88 static bool clear(
bool is2d,
bool dowrite=
true);
89 static bool sortHorizons(
bool is2d,
98 static bool update(
bool id2d,
#define mExpClass(module)
Definition: commondefs.h:160
bool is2d_
Definition: horizonrelation.h:79
ObjectSet< RelationTree::Node > nodes_
Definition: horizonrelation.h:78
A Relation tree where a parent-child relationship means a top-bottom relationship for the horizons...
Definition: horizonrelation.h:31
Set of BufferString objects.
Definition: bufstringset.h:28
BufferString datestamp_
Definition: horizonrelation.h:42
SeparString with backquotes as separators, use in most ascii files.
Definition: separstr.h:119
Set of pointers to objects.
Definition: commontypes.h:32
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
ObjectSet< const Node > children_
Definition: horizonrelation.h:41
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: horizonrelation.h:35
MultiID id_
Definition: horizonrelation.h:40
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
bool read()
Definition: horizonrelation.h:73
Compound key consisting of ints.
Definition: multiid.h:25