OpendTect-6_4  6.4
iosubdir.h
Go to the documentation of this file.
1 #ifndef iosubdir_h
2 #define iosubdir_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Dec 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 */
14 
15 #include "ioobj.h"
16 
17 
18 class IOSubDir : public IOObj
19 {
20 public:
21  IOSubDir(const char* subdirnm);
22  IOSubDir(const IOSubDir&);
23  bool isSubdir() const { return true; }
24  bool isBad() const { return isbad_; }
25  void copyFrom(const IOObj*) {}
26  static IOSubDir* get(ascistream&,const char* rootdirnm);
27 
28  const char* fullUserExpr(bool) const;
29  bool implExists(bool) const { return !isbad_; }
30  bool implReadOnly() const { return false; }
31  bool implRemove() const { return false; }
32  bool implManagesObjects() const { return true; }
33  bool implRename(const char*,const CallBack*)
34  { return false; }
35  bool implSetReadOnly(bool) const { return false; }
36 
37  const char* connType() const { return 0; }
38  Conn* getConn( bool forread ) const { return 0; }
39 
40  const char* dirName() const { return fullUserExpr(true); }
41 
42 protected:
43 
44  bool isbad_;
45 
46  bool getFrom(ascistream&) { return true; }
47  bool putTo(ascostream&) const;
48 
49  friend class IOMan;
50 
51 };
52 
53 
54 #endif
Definition: ioobj.h:58
bool implRename(const char *, const CallBack *)
Definition: iosubdir.h:33
Conn * getConn(bool forread) const
Definition: iosubdir.h:38
bool implManagesObjects() const
Definition: iosubdir.h:32
OpendTect standard ascii format file writing.
Definition: ascstream.h:32
manages the 'Meta-'data store for the IOObj's. This info is read from the .omf files.
Definition: ioman.h:36
bool implReadOnly() const
Definition: iosubdir.h:30
bool putTo(ascostream &) const
bool isBad() const
Definition: iosubdir.h:24
bool implExists(bool) const
Definition: iosubdir.h:29
const char * dirName() const
The directory ame within the tree.
Definition: iosubdir.h:40
const char * connType() const
Definition: iosubdir.h:37
bool getFrom(ascistream &)
Definition: iosubdir.h:46
OpendTect standard ascii format file reading.
Definition: ascstream.h:83
Data connection.
Definition: conn.h:30
Definition: iosubdir.h:18
bool isSubdir() const
Definition: iosubdir.h:23
void copyFrom(const IOObj *)
Definition: iosubdir.h:25
bool implSetReadOnly(bool) const
Definition: iosubdir.h:35
const char * fullUserExpr(bool) const
IOSubDir(const char *subdirnm)
CallBacks object-oriented (object + method).
Definition: callback.h:57
bool implRemove() const
Definition: iosubdir.h:31
bool isbad_
Definition: iosubdir.h:44

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