Add ConfigFile::parse()

This commit is contained in:
Pedro J. Estébanez
2020-02-10 09:19:00 +01:00
parent 47f19cc776
commit e5bd3b707f
3 changed files with 35 additions and 4 deletions

View File

@@ -129,6 +129,16 @@
<description>
</description>
</method>
<method name="parse">
<return type="int" enum="Error">
</return>
<argument index="0" name="data" type="String">
</argument>
<description>
Parses the the passed string as the contents of a config file. The string is parsed and loaded in the ConfigFile object which the method was called on.
Returns one of the [enum Error] code constants ([code]OK[/code] on success).
</description>
</method>
<method name="save">
<return type="int" enum="Error">
</return>