Closed o-jill closed 9 years ago
you can also choose JSON as a file format :smiley:
this is an example.
<?XML version="1.0" ?>
<kouets version="1.0">
<config>
<activatetab> FALSE </activatetab>
<apppath> C:/path/to/default.exe </apppath>
<cmdline> --some --default --command --option </cmdline>
<color1> #FF0000 </color1>
</config>
<item>
<file>kouetsapp.cpp</file>
<!-- default program(apppath) and cmdline will be used -->
</item>
<item>
<file> kouetsapp.h </file>
<apppath> C:/speci/alpat/htoan/application.exe </program>
<cmdline> --some --command --option </cmdline>
<parser> cpplint.py_VS7 </parser>
</item>
</kouets>
this is JSON example but unfortunately JSON sometimes has comma problem...
{
"kouets": {
"config": {
"activetab": "FALSE",
"apppath": "C:/path/to/default.exe",
"cmdline": "--some --default --command --option"
},
"item": {
"file":"kouetsapp.cpp"
},
"item": {
"file":"kouetsapp.h",
"apppath":"C:/speci/alpat/htoan/application.exe",
"cmdline":"--some --command --option",
"parser":"cpplint.py_VS7"
}
}
}
file format specification was written in projectfilespec.md.
implemented in PR #29.
how about change project file format to XML? it is useful for adding some parameters. how to use SAX parser in Qt: