OpendTect  6.6
stratunitrepos.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert Bril
8  Date: Dec 2003
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "stratmod.h"
15 #include "repos.h"
16 #include "uistring.h"
17 
18 class MultiID;
19 
20 namespace Strat
21 {
22 class RefTree;
23 
32 public:
33 
34  bool haveTree() const;
35  uiString lastMsg() const { return msg_; }
36 
37  RefTree* read(const MultiID&);
38  bool write(const RefTree&,const MultiID&);
39 
40  static const char* fileNameBase();
41 
43 
44 protected:
45 
46  RefTree* readFromFile(const char*);
47  bool writeToFile(const RefTree&,const char*);
48 
49  mutable uiString msg_;
51 
52 public:
53  Repos::Source lastSource() const { return src_; }
55  bool writeTree(const RefTree&,
57 };
58 
59 } // namespace Strat
60 
Repos::Source
Source
Definition: repos.h:24
Strat::RepositoryAccess::readTree
RefTree * readTree()
Read the 'best' tree.
Strat::RepositoryAccess::readTree
RefTree * readTree(Repos::Source)
uistring.h
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Strat::RepositoryAccess::read
RefTree * read(const MultiID &)
Strat::RepositoryAccess::lastMsg
mODTextTranslationClass(RepositoryAccess) public uiString lastMsg() const
Definition: stratunitrepos.h:35
Strat::RepositoryAccess::lastSource
Repos::Source lastSource() const
Definition: stratunitrepos.h:53
Strat::RepositoryAccess::msg_
uiString msg_
Definition: stratunitrepos.h:49
Strat::RefTree
Tree of UnitRef's
Definition: stratreftree.h:29
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
Strat::RepositoryAccess::writeTree
bool writeTree(const RefTree &, Repos::Source src=Repos::Survey)
Strat::RepositoryAccess::readFromFile
RefTree * readFromFile(const char *)
Strat::RepositoryAccess::writeToFile
bool writeToFile(const RefTree &, const char *)
Strat::RepositoryAccess::write
bool write(const RefTree &, const MultiID &)
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
Strat
Stratigraphy.
Definition: stratlevel.h:26
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
Repos::Survey
@ Survey
Definition: repos.h:24
repos.h
Strat::RepositoryAccess::src_
Repos::Source src_
Definition: stratunitrepos.h:50
Strat::RepositoryAccess::fileNameBase
static const char * fileNameBase()
Strat::RepositoryAccess
Repository of all stratigraphic descriptions defining the building blocks of subsurface descriptions.
Definition: stratunitrepos.h:31

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021