OpendTect  6.3
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 ________________________________________________________________________
11 
12 */
13 
14 #include "ioobj.h"
15 
16 
17 class IOSubDir : public IOObj
18 {
19 public:
20  IOSubDir(const char* subdirnm);
21  IOSubDir(const IOSubDir&);
22  bool isSubdir() const { return true; }
23  bool isBad() const { return isbad_; }
24  void copyFrom(const IOObj&) {}
25  static IOSubDir* get(ascistream&,const char* rootdirnm);
26 
27  const char* fullUserExpr(bool) const;
28  bool implExists(bool) const { return !isbad_; }
29  bool implReadOnly() const { return false; }
30  bool implRemove() const { return false; }
31  bool implManagesObjects() const { return true; }
32  bool implRename(const char*,const CallBack*)
33  { return false; }
34  bool implSetReadOnly(bool) const { return false; }
35 
36  const char* connType() const { return 0; }
37  Conn* getConn( bool forread ) const { return 0; }
38 
39  const char* dirName() const { return fullUserExpr(true); }
40 
41  bool isbad_;
42 
43  bool getFrom(ascistream&) { return true; }
44  bool putTo(ascostream&) const;
45 
46 };
47 
48 
49 #endif
Definition: ioobj.h:57
bool implRename(const char *, const CallBack *)
Definition: iosubdir.h:32
Conn * getConn(bool forread) const
Definition: iosubdir.h:37
bool implManagesObjects() const
Definition: iosubdir.h:31
OpendTect standard ascii format file writing.
Definition: ascstream.h:30
bool implReadOnly() const
Definition: iosubdir.h:29
bool putTo(ascostream &) const
bool isBad() const
Definition: iosubdir.h:23
bool implExists(bool) const
Definition: iosubdir.h:28
const char * dirName() const
The directory ame within the tree.
Definition: iosubdir.h:39
const char * connType() const
Definition: iosubdir.h:36
bool getFrom(ascistream &)
Definition: iosubdir.h:43
OpendTect standard ascii format file reading.
Definition: ascstream.h:81
Definition: conn.h:31
Definition: iosubdir.h:17
void copyFrom(const IOObj &)
Definition: iosubdir.h:24
bool isSubdir() const
Definition: iosubdir.h:22
bool implSetReadOnly(bool) const
Definition: iosubdir.h:34
const char * fullUserExpr(bool) const
IOSubDir(const char *subdirnm)
CallBacks object-oriented (object + method).
Definition: callback.h:62
bool implRemove() const
Definition: iosubdir.h:30
bool isbad_
Definition: iosubdir.h:41

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