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

continued

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: 1357
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 93e1ad7b
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: gsexx.h,v 1.7 2002-04-05 10:05:38 forbrig Exp $
* $Id: gsexx.h,v 1.8 2003-06-26 20:54:59 tforb Exp $
* \author Thomas Forbriger
* \date 16/03/2002
*
......@@ -23,7 +23,7 @@
#define TF_GSEXX_H_VERSION \
"TF_GSEXX_H V1.0 "
#define TF_GSEXX_H_CVSID \
"$Id: gsexx.h,v 1.7 2002-04-05 10:05:38 forbrig Exp $"
"$Id: gsexx.h,v 1.8 2003-06-26 20:54:59 tforb Exp $"
// #include <libtime++.h>
#include<string>
......@@ -303,6 +303,10 @@ inline intT TDAT2read::get()
return(retval);
}
//! Read from TDAT2read object
TDAT2read& operator>>(TDAT2read& in, intT& val)
{ val=in.get(); return(in); }
/*----------------------------------------------------------------------*/
//! Abstract base class for writing %GSE2 %waveform data.
......@@ -330,10 +334,19 @@ class TDAT2write: public TDAT2sum
// inline put wrapper function
inline void TDAT2write::put(const intT& value)
{
if (!TDAT2sum::hot()) throw
Terror("ERROR (TDAT2write): writing more samples than specified!");
add(value);
put_to_stream(value);
if (!TDAT2sum::hot()) {
Mos << TDAT2sum::checksum();
}
}
//! Write to TDAT2write object
TDAT2write& operator<<(TDAT2write& out, const intT& val)
{ out.put(val); return(out); }
/*----------------------------------------------------------------------*/
//! Derived class for reading %CM6 subformat data.
......
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