sac.h 2.08 KB
Newer Older
1
2
3
4
5
/*! \file sac.h
 * \brief read SAC files (prototypes)
 * 
 * ----------------------------------------------------------------------------
 * 
6
 * $Id: sac.h,v 1.6 2010-05-03 11:07:45 tforb Exp $
7
8
9
10
 * \author Thomas Forbriger
 * \date 21/12/2004
 * 
 * read SAC files (prototypes)
thomas.forbriger's avatar
thomas.forbriger committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 *
 * ----
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version. 
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 * ----
27
28
29
30
31
 * 
 * Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach) 
 * 
 * REVISIONS and CHANGES 
 *  - 21/12/2004   V1.0   Thomas Forbriger
32
 *  - 03/05/2010   V1.1   sac provides debugging option
33
34
35
36
37
38
39
40
 * 
 * ============================================================================
 */

// include guard
#ifndef TF_SAC_H_VERSION

#define TF_SAC_H_VERSION \
41
  "TF_SAC_H   V1.1"
42
#define TF_SAC_H_CVSID \
43
  "$Id: sac.h,v 1.6 2010-05-03 11:07:45 tforb Exp $"
thomas.forbriger's avatar
thomas.forbriger committed
44
45

#include<datreadxx/datread.h>
46

47
namespace datread {
48

thomas.forbriger's avatar
thomas.forbriger committed
49
50
51
52
53
54
55
  /*! \brief class to read SAC binary data
   *
   * \ingroup sac
   */
  class isacstream: public idatstream {
    public:
      typedef idatstream Tbase;
56
      isacstream(std::istream& is, const bool& debug=false);
thomas.forbriger's avatar
thomas.forbriger committed
57
58
59
60
61
62
63
64
      virtual ~isacstream() { }
      virtual Tdseries dseries();
      virtual Tfseries fseries();
      virtual Tiseries iseries();
      virtual void skipseries();
      static void help(std::ostream& os=std::cout);
    private:
      void readheader();
65
      bool Mdebug;
thomas.forbriger's avatar
thomas.forbriger committed
66
67
  }; // class isacstream

68
} // namespace datread
69
70
71
72

#endif // TF_SAC_H_VERSION (includeguard)

/* ----- END OF sac.h ----- */