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