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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user