From 99abb18825db2ea793398117e108b830abf0e692 Mon Sep 17 00:00:00 2001 From: Mark Pictor Date: Sun, 13 Nov 2011 19:25:18 -0500 Subject: [PATCH] print more details in STEPread_error() --- src/clstepcore/STEPcomplex.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/clstepcore/STEPcomplex.cc b/src/clstepcore/STEPcomplex.cc index d49a683b..041a3fdb 100644 --- a/src/clstepcore/STEPcomplex.cc +++ b/src/clstepcore/STEPcomplex.cc @@ -496,7 +496,13 @@ void STEPcomplex::BuildAttrs( const char * s ) { } void STEPcomplex::STEPread_error( char c, int index, istream & in ) { - cout << "STEPcomplex::STEPread_error() \n"; + cout << "STEPcomplex::STEPread_error(), index=" << index << ", entity #" << STEPfile_id << "." << endl; + streampos p = in.tellg(); + std::string q,r; + getline(in,q); + getline(in,r); + cout << "Remainder of this line:" << endl << c << q << endl << "Next line:" << endl << r << endl; + in.seekg(p); } /**