From d4f47e4d311817bb43275ccb02d6520823a7cfa3 Mon Sep 17 00:00:00 2001 From: petr000 Date: Fri, 29 Jul 2011 17:00:42 +0200 Subject: [PATCH] The first state of automaton and subautomaton is now printed only once into the output file. --- src/iooper.h | 59 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/src/iooper.h b/src/iooper.h index 4567193..f85ed64 100644 --- a/src/iooper.h +++ b/src/iooper.h @@ -126,13 +126,17 @@ class IO_operations if(ctx.compare(0,context.length(),context)==0 && context.length()==ctx.length()) { str = cut_namespaces(state.substr(0,pos1)); - filestr<::iterator i = nstates.begin();i!=nstates.end();i++) { @@ -177,13 +182,17 @@ class IO_operations if(ctx.compare(0,context.length(),context)==0 && context.length()==ctx.length()) { str = cut_namespaces(state.substr(0,pos1)); - filestr<::iterator i = transitions.begin();i!=transitions.end();i++) // write all transitions { params = *i; - pos1 = params.find(","); - state = cut_namespaces(params.substr(0,pos1)); - filestr<"; - pos2 = params.rfind(","); - dest = cut_namespaces(params.substr(pos2+1)); - filestr<"; + pos2 = params.rfind(","); + dest = cut_namespaces(params.substr(pos2+1)); + filestr<