DATRW++ library: seismic data I/O with multiple formats
gseread.h
Go to the documentation of this file.
1 /*! \file gseread.h
2  * \brief raw GSE reading module (prototypes)
3  *
4  * ----------------------------------------------------------------------------
5  *
6  * \author Thomas Forbriger
7  * \date 19/09/2007
8  *
9  * raw GSE reading module (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  *
33  * ============================================================================
34  */
35 
36 // include guard
37 #ifndef DATRW_GSEREAD_H_VERSION
38 
39 #define DATRW_GSEREAD_H_VERSION \
40  "DATRW_GSEREAD_H V1.0 "
41 
42 #include<istream>
43 #include<aff/series.h>
44 #include<gsexx.h>
45 #include<sffxx.h>
46 
47 namespace datrw {
48 
49  /*! \brief all the stuff to read raw GSE data.
50  * \defgroup group_gse Reading module for: raw GSE data
51  */
52 
53  /*! \brief all the stuff to read raw GSE data
54  *
55  * \ingroup group_gse
56  */
57  namespace gse {
58 
59  /*! \brief default return type for GSE waveforms
60  * \ingroup group_gse
61  */
62  typedef GSE2::waveform::intT Tivalue;
63  typedef aff::Series<Tivalue> Tiseries;
64 
65  /*! \brief print info about GSE reading
66  * \ingroup group_gse
67  */
68  void help(std::ostream& os);
69 
70  /*! \brief find next WID2 line
71  * \ingroup group_gse
72  */
73  sff::WID2 next_wid2(std::istream& is);
74 
75  /*! \brief read samples from file
76  * \ingroup group_gse
77  */
78  Tiseries read_gse_data(std::istream& is, const int& nsamples);
79 
80  } // namespace gse
81 
82 } // namespace datrw
83 
84 #endif // DATRW_GSEREAD_H_VERSION (includeguard)
85 
86 /* ----- END OF gseread.h ----- */
sff::WID2 next_wid2(std::istream &is)
find next WID2 line
Definition: gseread.cc:49
aff::Series< Tivalue > Tiseries
Definition: gseread.h:63
const int nsamples
number of samples per minute block and channel
Definition: hpmodata.h:51
Tiseries read_gse_data(std::istream &is, const int &nsamples)
read samples from file
Definition: gseread.cc:92
GSE2::waveform::intT Tivalue
default return type for GSE waveforms
Definition: gseread.h:62
Root namespace of library.
Definition: aalibdatrwxx.cc:16
void help(std::ostream &os)
print info about GSE reading
Definition: gseread.cc:75