From df40de3b564062c1bba93332d08e86f3691e6b00 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 23 Aug 2010 17:56:37 +0000 Subject: Added output of XML file with universe states per tick. --- config.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'config.cpp') diff --git a/config.cpp b/config.cpp index 5c74954..a2fc3a8 100644 --- a/config.cpp +++ b/config.cpp @@ -733,6 +733,10 @@ bool Config::read(const string& fname,vector& mass) m_fog_light=toYesNo(arg[4]); break; + case output_cmd: + m_output = arg[0]; + break; + default: break; } @@ -873,6 +877,12 @@ string Config::error() const } +const string& Config::output() const +{ + return m_output; +} + + // ---------------------------------------- PRIVATE MEMBERS // bool Config::CompareNoCase(const string& s1, const string& s2) @@ -1032,6 +1042,7 @@ bool Config::getCommand(ifstream& file, Config::Command& cmd, {"ring_reuse",ring_reuse_cmd,2}, {"ring_mreuse",ring_mreuse_cmd,3}, {"fog",fog_cmd,5}, + {"output",output_cmd,1}, {"",cmd_error,1} }; @@ -1295,5 +1306,4 @@ string Config::makeName(string& name, int no) return n; } - // END OF FILE // -- cgit v1.2.3