From: <gsa...@us...> - 2010-11-16 16:50:03
|
Revision: 158 http://dsim.svn.sourceforge.net/dsim/?rev=158&view=rev Author: gsabatier Date: 2010-11-16 16:49:57 +0000 (Tue, 16 Nov 2010) Log Message: ----------- [Test Boost] Good output message after parsing a schedule file with Classic version Modified Paths: -------------- trunk/dsim/test/boost/spirit/schedule_parser.cpp Modified: trunk/dsim/test/boost/spirit/schedule_parser.cpp =================================================================== --- trunk/dsim/test/boost/spirit/schedule_parser.cpp 2010-11-16 13:22:37 UTC (rev 157) +++ trunk/dsim/test/boost/spirit/schedule_parser.cpp 2010-11-16 16:49:57 UTC (rev 158) @@ -886,17 +886,27 @@ boost::spirit::classic::space_p); // DEBUG - std::cout << "Flight Period:" << std::endl; - lFlightPeriod.display(); + //std::cout << "Flight Period:" << std::endl; + //lFlightPeriod.display(); - std::cout << "-------------------------" << std::endl; + const std::string hasBeenFullyReadStr = (info.full == true)?"":"not "; + if (info.hit) { - std::cout << "Parsing succeeded" << std::endl; + std::cout << "Parsing of fare input file: " << lFilename + << " succeeded: read " << info.length + << " characters. \nThe input file has " + << hasBeenFullyReadStr + << "been fully read. Stop point: " << info.stop + << std::endl; } else { - std::cout << "Parsing failed" << std::endl; + std::cout << "Parsing of fare input file: " << lFilename + << " failed: read " << info.length + << " characters. The input file has " + << hasBeenFullyReadStr + << "been fully read. Stop point: " << info.stop + << std::endl; } - std::cout << "-------------------------" << std::endl; } catch (const std::exception& stde) { std::cerr << "Standard exception: " << stde.what() << std::endl; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |