DATRW++ library: seismic data I/O with multiple formats
pdas.h
Go to the documentation of this file.
1 /*! \file pdas.h
2  * \brief read PDAS data (prototypes)
3  *
4  * ----------------------------------------------------------------------------
5  *
6  * \author Thomas Forbriger
7  * \date 30/03/2004
8  *
9  * read PDAS 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  * - 17/09/2004 V1.1 slightly simplified
32  * - 23/11/2010 V1.2 introduced static member data
33  *
34  * ============================================================================
35  */
36 
37 // include guard
38 #ifndef DATRW_PDAS_H_VERSION
39 
40 #define DATRW_PDAS_H_VERSION \
41  "DATRW_PDAS_H V1.2"
42 
43 #include<datrwxx/datread.h>
44 #include<datrwxx/pdasflags.h>
45 #include<vector>
46 
47 namespace datrw {
48 
49  namespace pdas {
50 
51  extern const bool isbinary;
52  extern const char* const streamID;
53 
54  } // namespace pdas
55 
56  /*----------------------------------------------------------------------*/
57 
58  /*! \brief class to read PDAS data
59  *
60  * \ingroup group_pdas
61  * \note Series values in floating point containers will be scaled!
62  */
63  class ipdasstream: public idatstream {
64  public:
65  typedef idatstream Tbase;
66  ipdasstream(std::istream& is);
67  virtual ~ipdasstream() { }
68  virtual Tdseries dseries();
69  virtual Tfseries fseries();
70  virtual Tiseries iseries();
71  virtual void skipseries();
72  static void help(std::ostream& os=std::cout);
73  static const std::ios_base::openmode openmode;
74  static const bool isbinary;
75  static const char* const streamID;
76  private:
77  void readheader();
78  // private members
80  }; // class ipdasstream
81 
82 } // namespace datrw
83 
84 #endif // DATRW_PDAS_H_VERSION (includeguard)
85 
86 /* ----- END OF pdas.h ----- */
const char *const streamID
Format properties.
Definition: ipdasstream.cc:56
static const std::ios_base::openmode openmode
Definition: pdas.h:73
aff::Series< float > Tfseries
Definition: types.h:46
static void help(std::ostream &os=std::cout)
Definition: ipdasstream.cc:144
aff::Series< double > Tdseries
Definition: types.h:45
Etype
define pdas data types
Definition: pdasflags.h:47
pdas::Etype Mtype
Definition: pdas.h:79
Root namespace of library.
Definition: aalibdatrwxx.cc:16
virtual Tfseries fseries()
Definition: ipdasstream.cc:80
ipdasstream(std::istream &is)
Definition: ipdasstream.cc:61
aff::Series< int > Tiseries
Definition: types.h:47
static const char *const streamID
Definition: pdas.h:75
virtual ~ipdasstream()
Definition: pdas.h:67
virtual void skipseries()
Definition: ipdasstream.cc:106
idatstream Tbase
Definition: pdas.h:65
virtual Tdseries dseries()
Definition: ipdasstream.cc:67
static const bool isbinary
Definition: pdas.h:74
virtual Tiseries iseries()
Definition: ipdasstream.cc:93
const bool isbinary
Format properties.
Definition: ipdasstream.cc:55
class to read PDAS data
Definition: pdas.h:63