From: petr000 Date: Wed, 11 May 2011 19:09:48 +0000 (+0200) Subject: Add check for errors during writing substates. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/boost-statechart-viewer.git/commitdiff_plain/cfa2f35ab26fd61f13dcf8c5e3eb222ae7745c91?hp=8a1bbe2e50f33bad22ab6555fb1adcb4ff384a15 Add check for errors during writing substates. --- diff --git a/src/iooper.h b/src/iooper.h index 007595c..a8a8910 100644 --- a/src/iooper.h +++ b/src/iooper.h @@ -103,7 +103,7 @@ class IO_operations this->outputFilename = outputFilename; } - void write_states(ofstream& filestr) /** This method write states to the output file and also to transition table. */ + bool write_states(ofstream& filestr) /** This method write states to the output file and also to transition table. */ { int pos1, pos2, cnt, subs; nState = 1; @@ -157,6 +157,8 @@ class IO_operations filestr<<"subgraph cluster"<