TSIO++ Time series input/output
inputoperators.h
Go to the documentation of this file.
1 
40 // include guard
41 #ifndef TSIO_INPUTOPERATORS_H_VERSION
42 
43 #define TSIO_INPUTOPERATORS_H_VERSION \
44  "TF_INPUTOPERATORS_H 2019/04/02"
45 
46 #include<tsioxx/traceheader.h>
47 #include<tsioxx/fileheader.h>
48 #include<tsioxx/sfftimeseries.h>
49 #include<datrwxx/datread.h>
50 
51 namespace ts {
52 
53  namespace sff {
54 
63  // libdatrwxx input operators
64 
65  datrw::idatstream& operator>>(datrw::idatstream& is, FileHeader& fh);
66  datrw::idatstream& operator>>(datrw::idatstream& is, TraceHeader& th);
67 
68  /*----------------------------------------------------------------------*/
69 
70  template<class C>
71  datrw::idatstream& operator>>(datrw::idatstream& is,
73  {
74  typename SFFTimeSeries<C>::Tseries series;
75  is >> series >> s.header;
76  s=series;
77  return(is); }
78 
83  } // namespace sff
84 } // namespace ts
85 
86 #endif // TSIO_INPUTOPERATORS_H_VERSION (includeguard)
87 
88 /* ----- END OF inputoperators.h ----- */
Tbase::Tseries Tseries
Definition: sfftimeseries.h:84
hold a full SFF trace and provide conversion
Definition: sfftimeseries.h:71
libtsxx TimeSeries class template with SFF trace header (prototypes)
Outer namespace.
Definition: cmdlinefiles.cc:46
datrw::idatstream & operator>>(datrw::idatstream &is, FileHeader &fh)
define ts::sff::TraceHeader (prototypes)
define ts::sff::FileHeader (prototypes)