TSIO++ Time series input/output
traceheader.h
Go to the documentation of this file.
1 
34 // include guard
35 #ifndef TSIO_TRACEHEADER_H_VERSION
36 
37 #define TSIO_TRACEHEADER_H_VERSION \
38  "TSIO_TRACEHEADER_H 2019/04/02"
39 
40 #include<sffxx.h>
41 
42 namespace ts {
43 
44  namespace sff {
45 
49  class TraceHeader {
50  public:
51  TraceHeader(): Mhasfree(false), Mhasinfo(false) { }
52  void info(const ::sff::INFO& s);
53  void free(const ::sff::FREE& f);
54  void wid2(const ::sff::WID2& w) { Mwid2=w; }
55  void append(const ::sff::FREE& f);
56  ::sff::FREE free() const { return Mfree; }
57  ::sff::INFO info() const { return Minfo; }
58  ::sff::WID2 wid2() const { return Mwid2; }
59  bool hasfree() const { return Mhasfree; }
60  bool hasinfo() const { return Mhasinfo; }
61  void read(std::istream& is, const bool& verbose=false);
62  private:
63  ::sff::FREE Mfree;
64  ::sff::INFO Minfo;
65  ::sff::WID2 Mwid2;
66  bool Mhasfree;
67  bool Mhasinfo;
68  }; // class TraceHeader
69 
70  } // namespace sff
71 
72 } // namespace ts
73 
74 #endif // TSIO_TRACEHEADER_H_VERSION (includeguard)
75 
76 /* ----- END OF traceheader.h ----- */
::sff::INFO Minfo
Definition: traceheader.h:64
::sff::INFO info() const
Definition: traceheader.h:57
void append(const ::sff::FREE &f)
Definition: traceheader.cc:58
void read(std::istream &is, const bool &verbose=false)
bool hasinfo() const
Definition: traceheader.h:60
hold information for a complete SFF trace header
Definition: traceheader.h:49
::sff::WID2 Mwid2
Definition: traceheader.h:65
::sff::FREE free() const
Definition: traceheader.h:56
Outer namespace.
Definition: cmdlinefiles.cc:46
::sff::FREE Mfree
Definition: traceheader.h:63
void wid2(const ::sff::WID2 &w)
Definition: traceheader.h:54
::sff::WID2 wid2() const
Definition: traceheader.h:58
bool hasfree() const
Definition: traceheader.h:59