TSIO++ Time series input/output
fileheader.h
Go to the documentation of this file.
1 
34 // include guard
35 #ifndef TSIO_FILEHEADER_H_VERSION
36 
37 #define TSIO_FILEHEADER_H_VERSION \
38  "TSIO_FILEHEADER_H 2019/04/02"
39 
40 #include<sffxx.h>
41 
42 namespace ts {
43 
44  namespace sff {
45 
49  class FileHeader {
50  public:
51  FileHeader(): Mhasfree(false), Mhassrce(false) { }
52  void srce(const ::sff::SRCE& s);
53  void free(const ::sff::FREE& f);
54  void append(const ::sff::FREE& f);
55  ::sff::FREE free() const { return Mfree; }
56  ::sff::SRCE srce() const { return Msrce; }
57  bool hasfree() const { return Mhasfree; }
58  bool hassrce() const { return Mhassrce; }
59  private:
60  ::sff::FREE Mfree;
61  ::sff::SRCE Msrce;
62  bool Mhasfree;
63  bool Mhassrce;
64  }; // struct FileHeader
65 
66  } // namespace sff
67 
68 } // namespace ts
69 
70 #endif // TSIO_FILEHEADER_H_VERSION (includeguard)
71 
72 /* ----- END OF fileheader.h ----- */
::sff::SRCE Msrce
Definition: fileheader.h:61
void append(const ::sff::FREE &f)
Definition: fileheader.cc:58
bool hasfree() const
Definition: fileheader.h:57
bool hassrce() const
Definition: fileheader.h:58
Outer namespace.
Definition: cmdlinefiles.cc:46
hold information for a complete SFF file header
Definition: fileheader.h:49
::sff::FREE Mfree
Definition: fileheader.h:60
::sff::FREE free() const
Definition: fileheader.h:55
::sff::SRCE srce() const
Definition: fileheader.h:56