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

check source consistency

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/branches/libdatrwxx.su
SVN Revision: 3469
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent a9f85996
...@@ -101,6 +101,13 @@ namespace datrw { ...@@ -101,6 +101,13 @@ namespace datrw {
this->newtrace(); this->newtrace();
this->setwid2(Mnextheader.wid2()); this->setwid2(Mnextheader.wid2());
this->setinfo(Mnextheader.info()); this->setinfo(Mnextheader.info());
DATRW_assert(((this->srce().date == Mnextheader.srce().date)
&& (this->srce().cs == Mnextheader.srce().cs)
&& (this->srce().cx == Mnextheader.srce().cx)
&& (this->srce().cy == Mnextheader.srce().cy)
&& (this->srce().cz == Mnextheader.srce().cz)),
"ERROR (isustream::readheader): "
"current source differs from previous");
try { try {
Mnextheader.read(Mis); Mnextheader.read(Mis);
} catch (datrw::su::SUReadException) } catch (datrw::su::SUReadException)
......
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