changed: ConfParser -- now we can have a tree (spaces can have more than one level)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@768 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-09-26 05:40:26 +00:00
parent 60f0e62c23
commit 89efaa790f
10 changed files with 644 additions and 599 deletions

View File

@@ -46,11 +46,14 @@ bool GroupInfo::ParseGroups(const std::wstring & str, Groups & groups)
{
groups.Clear();
conf_parser.SetSpace(space);
conf_parser.UTF8(true);
if( conf_parser.ParseString(str) == ConfParser::ok )
{
ConfParser::Table::iterator i;
Space::Table::iterator i;
for(i=conf_parser.space.table.begin() ; i!=conf_parser.space.table.end() ; ++i)
for(i=space.table.begin() ; i!=space.table.end() ; ++i)
{
groups.AddGroup();
log << log1 << "stworzylem nowa grupe" << logend;