18.09.2012, 11:15, "Igor Mironchik" <imironch...@gmail.com>:
> QtConfFile - it's C++/Qt library for reading and saving configuration files 
> in a special format.
>
> Configuration file format is a set of tags, which are surrounded by curly 
> brackets, with values. Tags can be without values, can have one, and can have 
> several values. A sample configuration file is shown below:
>
> {cfg
>
>         {stringValue string}
>
>         {listOfStringValues str1 str2 str3}
>
>         {intValue 100}
>
>         {vecOfTags
>
>                    {stringValue string1}
>
>                    {intValue 100}
>
>         }
>
>         {vecOfTags
>
>                    {stringValue string2}
>
>                    {intValue 200}
>
>         }
>
> }

Use Lua instead:

cfg = {
    stringValue = "string",
    listOfStringValues = { "str1", "str2", "str3" },
    intValue = 100,
    vecOfTags = {
        stringValue = "string1",
        intValue = 100
    }
    vecOfTags2 = {
        stringValue = "string2",
        intValue = 100
    }
}

-- 
Regards,
Konstantin
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to