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

check input stream status before reading

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: 2404
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent abb26ffb
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* ---------------------------------------------------------------------------- * ----------------------------------------------------------------------------
* *
* $Id: datread.cc,v 1.6 2006-03-28 16:07:41 tforb Exp $ * $Id: datread.cc,v 1.7 2007-09-24 07:38:17 tforb Exp $
* \author Thomas Forbriger * \author Thomas Forbriger
* \date 30/03/2004 * \date 30/03/2004
* *
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define DATREAD_DATREAD_CC_VERSION \ #define DATREAD_DATREAD_CC_VERSION \
"DATREAD_DATREAD_CC V1.1 " "DATREAD_DATREAD_CC V1.1 "
#define DATREAD_DATREAD_CC_CVSID \ #define DATREAD_DATREAD_CC_CVSID \
"$Id: datread.cc,v 1.6 2006-03-28 16:07:41 tforb Exp $" "$Id: datread.cc,v 1.7 2007-09-24 07:38:17 tforb Exp $"
#include <datreadxx/datread.h> #include <datreadxx/datread.h>
...@@ -49,7 +49,9 @@ namespace datread { ...@@ -49,7 +49,9 @@ namespace datread {
Mis(is), Mwid2set(false), Msrceset(false), Minfoset(false), Mis(is), Mwid2set(false), Msrceset(false), Minfoset(false),
Mtracefreeset(false), Mfilefreeset(false), Mlast(false), Mtracefreeset(false), Mfilefreeset(false), Mlast(false),
Mprovidesd(providesd), Mprovidesf(providesf), Mprovidesi(providesi) Mprovidesd(providesd), Mprovidesf(providesf), Mprovidesi(providesi)
{ } {
DATREAD_assert(is.good(), "input stream is not good!");
}
/*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/
......
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