Commit d336d890 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

bundles is no longer in use

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1623
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent c95a930b
/*! \file bundles.h
* \brief bundles of header and data (prototypes)
*
* ----------------------------------------------------------------------------
*
* $Id: bundles.h,v 1.3 2004-02-10 21:15:24 tforb Exp $
* \author Thomas Forbriger
* \date 28/01/2004
*
* bundles of header and data (prototypes)
*
* Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)
*
* REVISIONS and CHANGES
* - 28/01/2004 V1.0 Thomas Forbriger
*
* ============================================================================
*/
// include guard
#ifndef TF_BUNDLES_H_VERSION
#define TF_BUNDLES_H_VERSION \
"TF_BUNDLES_H V1.0 "
#define TF_BUNDLES_H_CVSID \
"$Id: bundles.h,v 1.3 2004-02-10 21:15:24 tforb Exp $"
#include<aff/series.h>
#include<sffxx.h>
namespace ts {
/*! Bundle of header and series
* is a struct to indicate public data access
*/
template<class H, class S>
struct Bundle {
public:
typedef H Theader;
typedef S Tseries;
H header;
S series;
}; // struct Bundle
//! write a bundle to an output stream
template<class T>
sff::SFFostream<aff::Series<T> >&
operator<<(sff::SFFostream<aff::Series<T> >& os,
const Bundle<sff::WID2, aff::Series<T> >& b)
{
os << b.header << b.series;
return(os);
}
//! write a bundle to an output stream
template<class T>
std::ostream& operator<<(std::ostream& os,
const Bundle<sff::WID2, aff::Series<T> >& b)
{
sff::TraceHeader traceheader(b.header);
os << sff::OutputWaveform<aff::Series<T> >(b.series, traceheader,
sff::NM_maxdyn);
return(os);
}
//! function to assist writing of last bundle
template<class T>
sff::OutputWaveform<aff::Series<T> >
lastbundle(const Bundle<sff::WID2, aff::Series<T> >& b)
{
sff::TraceHeader traceheader(b.header, true);
return(sff::OutputWaveform<aff::Series<T> >(b.series, traceheader,
sff::NM_maxdyn));
}
// define bundle typedefs
typedef Bundle<sff::WID2, aff::Series<double> > TDsffbundle;
typedef Bundle<sff::WID2, aff::Series<float> > TSsffbundle;
}
#endif // TF_BUNDLES_H_VERSION (includeguard)
/* ----- END OF bundles.h ----- */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment