DATRW++ library: seismic data I/O with multiple formats
bonjer.h
Go to the documentation of this file.
1 /*! \file bonjer.h
2  * \brief read bonjers ASCII data (prototypes)
3  *
4  * ----------------------------------------------------------------------------
5  *
6  * \author Thomas Forbriger
7  * \date 30/03/2004
8  *
9  * read bonjers ASCII data (prototypes)
10  *
11  * ----
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25  * ----
26  *
27  * Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)
28  *
29  * REVISIONS and CHANGES
30  * - 30/03/2004 V1.0 Thomas Forbriger
31  * - 23/11/2010 V1.1 introduced static members
32  *
33  * ============================================================================
34  */
35 
36 // include guard
37 #ifndef DATRW_BONJER_H_VERSION
38 
39 #define DATRW_BONJER_H_VERSION \
40  "DATRW_BONJER_H V1.1"
41 
42 #include<datrwxx/datread.h>
43 
44 namespace datrw {
45 
46  namespace bonjer {
47 
48  extern const bool isbinary;
49  extern const char* const streamID;
50 
51  } // namespace bonjer
52 
53  /*----------------------------------------------------------------------*/
54 
55  /*! \brief input stream to read seismic data provided by K. Bonjer
56  *
57  * \ingroup group_bonjer
58  *
59  * The concept is based on SFF data contents and we will make use of SFF
60  * structures.
61  */
62  class ibonjerstream: public idatstream {
63  public:
64  typedef idatstream Tbase;
65  typedef aff::Series<double> Tseries;
66  ibonjerstream(std::istream& is);
67  virtual ~ibonjerstream() { }
68  virtual Tdseries dseries();
69  virtual Tfseries fseries();
70  virtual Tiseries iseries();
71  virtual void skipseries() { readheader(); }
72  static void help(std::ostream& os=std::cout)
73  { Tbase::help(os, "ibonjerstream"); }
74  static const std::ios_base::openmode openmode;
75  private:
76  void readheader();
77  }; // class ibonjerstream
78 
79 } // namespace datrw
80 
81 #endif // DATRW_BONJER_H_VERSION (includeguard)
82 
83 /* ----- END OF bonjer.h ----- */
virtual Tiseries iseries()
virtual Tfseries fseries()
virtual void skipseries()
Definition: bonjer.h:71
aff::Series< float > Tfseries
Definition: types.h:46
static const std::ios_base::openmode openmode
Definition: bonjer.h:74
static void help(std::ostream &os=std::cout)
Definition: bonjer.h:72
ibonjerstream(std::istream &is)
static void help(std::ostream &os=std::cout, const char *name="idatsream")
print some info about data conversion.
Definition: datread.cc:153
aff::Series< double > Tdseries
Definition: types.h:45
const bool isbinary
Format properties.
idatstream Tbase
Definition: bonjer.h:64
aff::Series< double > Tseries
Definition: bonjer.h:65
Root namespace of library.
Definition: aalibdatrwxx.cc:16
input stream to read seismic data provided by K. Bonjer
Definition: bonjer.h:62
const char *const streamID
Format properties.
aff::Series< int > Tiseries
Definition: types.h:47
virtual Tdseries dseries()
virtual ~ibonjerstream()
Definition: bonjer.h:67