[Interest] QtConFile

Konstantin Tokarev annulen at yandex.ru
Tue Sep 18 18:22:36 CEST 2012


18.09.2012, 11:15, "Igor Mironchik" <imironchick at 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



More information about the Interest mailing list