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 ----- */
ts::sff::TraceHeader::TraceHeader
TraceHeader()
Definition:
traceheader.h:51
ts::sff::TraceHeader::Minfo
::sff::INFO Minfo
Definition:
traceheader.h:64
ts::sff::TraceHeader::info
::sff::INFO info() const
Definition:
traceheader.h:57
ts::sff::TraceHeader::Mhasinfo
bool Mhasinfo
Definition:
traceheader.h:67
ts::sff::TraceHeader::append
void append(const ::sff::FREE &f)
Definition:
traceheader.cc:58
ts::sff::TraceHeader::read
void read(std::istream &is, const bool &verbose=false)
ts::sff::TraceHeader::hasinfo
bool hasinfo() const
Definition:
traceheader.h:60
ts::sff::TraceHeader
hold information for a complete SFF trace header
Definition:
traceheader.h:49
ts::sff::TraceHeader::Mwid2
::sff::WID2 Mwid2
Definition:
traceheader.h:65
ts::sff::TraceHeader::Mhasfree
bool Mhasfree
Definition:
traceheader.h:66
ts::sff::TraceHeader::free
::sff::FREE free() const
Definition:
traceheader.h:56
ts
Outer namespace.
Definition:
cmdlinefiles.cc:46
ts::sff::TraceHeader::Mfree
::sff::FREE Mfree
Definition:
traceheader.h:63
ts::sff::TraceHeader::wid2
void wid2(const ::sff::WID2 &w)
Definition:
traceheader.h:54
ts::sff::TraceHeader::wid2
::sff::WID2 wid2() const
Definition:
traceheader.h:58
ts::sff::TraceHeader::hasfree
bool hasfree() const
Definition:
traceheader.h:59
traceheader.h
Generated on Mon Aug 21 2023 17:36:31 for TSIO++ Time series input/output by
1.8.14