C
carl
I need to setup various parameters for a sequence of processes that are
exectued in my application.
Some of the parameters are common parameters for all processes while others
are unique for the give process. Currently I was thinking of doing:
<main>
<parameters>
<parameter id="steps" value="10000"/>
<parameter id="outPutFolder" value="c:\test"/>
<parameter id="color_type" value="3"/>
</parameters>
<processA>
<parameters>
<parameter id="x_type" value="1"/>
<parameter id="y_type" value="3"/>
</parameters>
</processA>
<processB>
<parameters>
<parameter id="interpolator_type" value="1"/>
<parameter id="space_type" value="4"/>
<parameter id="frame_type" value="2"/>
</parameters>
<levels>
<level order = "1">
<parameters>
<parameter id="grid_size" value="3"/>
<parameter id="numb_of_samples" value="5000"/>
</parameters>
</level>
<level order = "2">
<parameters>
<parameter id="grid_size" value="6"/>
<parameter id="numb_of_samples" value="10000"/>
</parameters>
</level>
</levels>
</processB>
</main>
In the above example the first set of parameters are common for all
processes and subprocesses. Next parameters local for each process and its
subprocesses are specified.
Is this a good way to organize a xml file for the above described purpose?
Or could it be clarified/reduced in size?
exectued in my application.
Some of the parameters are common parameters for all processes while others
are unique for the give process. Currently I was thinking of doing:
<main>
<parameters>
<parameter id="steps" value="10000"/>
<parameter id="outPutFolder" value="c:\test"/>
<parameter id="color_type" value="3"/>
</parameters>
<processA>
<parameters>
<parameter id="x_type" value="1"/>
<parameter id="y_type" value="3"/>
</parameters>
</processA>
<processB>
<parameters>
<parameter id="interpolator_type" value="1"/>
<parameter id="space_type" value="4"/>
<parameter id="frame_type" value="2"/>
</parameters>
<levels>
<level order = "1">
<parameters>
<parameter id="grid_size" value="3"/>
<parameter id="numb_of_samples" value="5000"/>
</parameters>
</level>
<level order = "2">
<parameters>
<parameter id="grid_size" value="6"/>
<parameter id="numb_of_samples" value="10000"/>
</parameters>
</level>
</levels>
</processB>
</main>
In the above example the first set of parameters are common for all
processes and subprocesses. Next parameters local for each process and its
subprocesses are specified.
Is this a good way to organize a xml file for the above described purpose?
Or could it be clarified/reduced in size?