diff options
| author | Ian C <ianc@noddybox.co.uk> | 2010-08-23 17:56:37 +0000 |
|---|---|---|
| committer | Ian C <ianc@noddybox.co.uk> | 2010-08-23 17:56:37 +0000 |
| commit | df40de3b564062c1bba93332d08e86f3691e6b00 (patch) | |
| tree | 1133062c0664a1c3c04b991d1415a431eae821dc /config.cpp | |
| parent | af34bad8b39e95276b0d4e08ccdc26f89df2d2ec (diff) | |
Added output of XML file with universe states per tick.
Diffstat (limited to 'config.cpp')
| -rw-r--r-- | config.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -733,6 +733,10 @@ bool Config::read(const string& fname,vector<Mass>& 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 // |
