OpendTect  6.6
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
IOSubDir::isbad_
bool isbad_
Definition: iosubdir.h:44
IOSubDir::implRename
bool implRename(const char *, const CallBack *)
Definition: iosubdir.h:33
Conn
Data connection.
Definition: conn.h:30
IOSubDir
Definition: iosubdir.h:19
IOSubDir::putTo
bool putTo(ascostream &) const
IOSubDir::isBad
bool isBad() const
Definition: iosubdir.h:24
IOSubDir::implRemove
bool implRemove() const
Definition: iosubdir.h:31
IOSubDir::isSubdir
bool isSubdir() const
Definition: iosubdir.h:23
IOSubDir::implSetReadOnly
bool implSetReadOnly(bool) const
Definition: iosubdir.h:35
ascostream
OpendTect standard ascii format file writing.
Definition: ascstream.h:32
IOSubDir::connType
const char * connType() const
Definition: iosubdir.h:37
IOSubDir::fullUserExpr
const char * fullUserExpr(bool) const
CallBack
CallBacks object-oriented (object + method).
Definition: callback.h:62
IOSubDir::implExists
bool implExists(bool) const
Definition: iosubdir.h:29
IOSubDir::getFrom
bool getFrom(ascistream &)
Definition: iosubdir.h:46
IOSubDir::implReadOnly
bool implReadOnly() const
Definition: iosubdir.h:30
IOSubDir::copyFrom
void copyFrom(const IOObj *)
Definition: iosubdir.h:25
IOSubDir::implManagesObjects
bool implManagesObjects() const
Definition: iosubdir.h:32
IOSubDir::IOSubDir
IOSubDir(const IOSubDir &)
IOObj
Definition: ioobj.h:58
IOSubDir::getConn
Conn * getConn(bool forread) const
Definition: iosubdir.h:38
IOMan
Definition: ioman.h:49
IOSubDir::get
static IOSubDir * get(ascistream &, const char *rootdirnm)
IOSubDir::dirName
const char * dirName() const
The directory ame within the tree.
Definition: iosubdir.h:40
ascistream
OpendTect standard ascii format file reading.
Definition: ascstream.h:83
IOSubDir::IOSubDir
IOSubDir(const char *subdirnm)
ioobj.h

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