OpendTect  6.3
iox.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: A.H.Bril
8  Date: 25-7-1997
9  Contents: IOObj on other IOObj
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "generalmod.h"
15 #include "ioobj.h"
16 
17 
18 /*\brief is a X-Group entry in the omf, e.g. PS data based on 3D cubes. */
19 
20 mExpClass(General) IOX : public IOObj
21 {
22 public:
23  IOX(const char* nm=0,DBKey id=DBKey::getInvalid(),
24  bool =0);
25  virtual ~IOX();
26  bool isBad() const;
27 
28  void copyFrom(const IOObj&);
29  const char* fullUserExpr(bool forread=true) const;
30  BufferString mainFileName() const;
31  const char* dirName() const;
32 
33  bool implExists(bool) const;
34  bool implManagesObjects() const { return true; }
35 
36  const char* connType() const;
37  Conn* getConn(bool) const;
38  IOObj* getIOObj() const;
39 
40  const DBKey& ownKey() const { return ownkey_; }
41  void setOwnKey(const DBKey&);
42 
43 protected:
44 
46 
47  bool getFrom(ascistream&);
48  bool putTo(ascostream&) const;
49 
50  static int prodid;
51 };
#define mExpClass(module)
Definition: commondefs.h:157
Definition: ioobj.h:57
DBKey ownkey_
Definition: iox.h:45
static int prodid
for factory implementation
Definition: iox.h:50
OpendTect standard ascii format file writing.
Definition: ascstream.h:30
const DBKey & ownKey() const
Definition: iox.h:40
static DBKey getInvalid()
Definition: dbkey.h:57
OpendTect standard ascii format file reading.
Definition: ascstream.h:81
Definition: conn.h:31
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Definition: iox.h:20
bool implManagesObjects() const
Definition: iox.h:34
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36

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