X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fconfig.cpp;h=74c3741466ae33131aa58d76551467c174f25dd6;hb=bb5c048950a011f181cb3235ed2b0b2677869171;hp=afa60e87e45f10fe3a0e0c9780e2c52c9a607741;hpb=b6dcf65b5e1b99f6c65454358c7610f3e9c8af2b;p=builder.git diff --git a/source/config.cpp b/source/config.cpp index afa60e8..74c3741 100644 --- a/source/config.cpp +++ b/source/config.cpp @@ -1,5 +1,12 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include -#include +#include #include #include #include "builder.h" @@ -172,7 +179,7 @@ void Config::save() const ofstream out(fn.str().c_str()); if(!out) return; - + for(i=options.begin(); i!=options.end(); ++i) out<<"option \""<second.name<<"\" \""<second.value<<"\";\n"; } @@ -207,7 +214,7 @@ void Config::load() Path::stat(fn, st); mtime=Time::TimeStamp::from_unixtime(st.st_mtime); - Parser::Parser parser(in, fn.str()); + DataFile::Parser parser(in, fn.str()); Loader loader(*this); loader.load(parser); }