OpendTect-6_4  6.4
emhorizonascio.h
Go to the documentation of this file.
1 #ifndef emhorizonascio_h
2 #define emhorizonascio_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: 4-11-2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "earthmodelmod.h"
17 #include "tableascio.h"
18 #include "od_istream.h"
19 
20 
21 namespace EM
22 {
23 
28 mExpClass(EarthModel) Horizon3DAscIO : public Table::AscIO
29 {
30 public:
32  od_istream& strm )
33  : Table::AscIO(fd)
34  , udfval_(mUdf(float))
35  , finishedreadingheader_(false)
36  , strm_(strm) {}
37 
38  static Table::FormatDesc* getDesc();
39  static void updateDesc(Table::FormatDesc&,
40  const BufferStringSet&);
41  static void createDescBody(Table::FormatDesc*,
42  const BufferStringSet&);
43 
44  bool isXY() const;
45  int getNextLine(Coord&,TypeSet<float>&);
46 
47  static const char* sKeyFormatStr();
48  static const char* sKeyAttribFormatStr();
49 
50 protected:
51 
53  float udfval_;
55 
56 };
57 
58 
63 mExpClass(EarthModel) Horizon2DAscIO : public Table::AscIO
64 {
65 public:
67  od_istream& strm )
68  : Table::AscIO(fd)
69  , udfval_(mUdf(float))
70  , finishedreadingheader_(false)
71  , strm_(strm) {}
72 
73  static Table::FormatDesc* getDesc();
74  static void updateDesc(Table::FormatDesc&,
75  const BufferStringSet&);
76  static void createDescBody(Table::FormatDesc*,
77  const BufferStringSet&);
78 
79  static bool isFormatOK(const Table::FormatDesc&,
80  BufferString&);
81  int getNextLine(BufferString& lnm,Coord& crd,
82  int& trcnr,TypeSet<float>& data);
83  bool isTraceNr() const;
84 
85 protected:
86 
88  float udfval_;
90 
91 };
92 
93 } // namespace EM
94 
95 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Ascii I/O for Horizon2D.
Definition: emhorizonascio.h:63
description of input our output data content
Definition: tabledef.h:220
A cartesian coordinate in 2D space.
Definition: coord.h:25
Set of BufferString objects.
Definition: bufstringset.h:28
OD class for stream read.
Definition: od_istream.h:24
od_istream strm_
Definition: emhorizonascio.h:52
od_istream strm_
Definition: emhorizonascio.h:87
Ascii I/O for Horizon3D.
Definition: emhorizonascio.h:28
Definition: geom2dascio.h:21
Horizon3DAscIO(const Table::FormatDesc &fd, od_istream &strm)
Definition: emhorizonascio.h:31
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
float udfval_
Definition: emhorizonascio.h:53
bool finishedreadingheader_
Definition: emhorizonascio.h:89
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Horizon2DAscIO(const Table::FormatDesc &fd, od_istream &strm)
Definition: emhorizonascio.h:66
float udfval_
Definition: emhorizonascio.h:88
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
bool finishedreadingheader_
Definition: emhorizonascio.h:54

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