#include <OptionsXML.h>
Inheritance diagram for COptionsXML:
This class won't do recursive storage or grouping. It's a simple 1-to-1 list. For 90% of the cases, that is enough.
The class should be initialized with a list of variable names and their defaults using DeclareVariable . Trying to set a variable name that isn't in the list will be ignored; getting a variable that isn't there will return a null variable.
|
|
|
|
|
Declare a variable in this class.
|
|
Implemented in CVideoOptions, and CVideoDeviceOptions. |
|
|
|
|
|
|
|
Return XML tree. For every variable declared, set its value as a subnode in the XML node. In the XML file, it looks like this: <name>value
Reimplemented in CVideoOptions. |
|
|
|
|
|
|
|
Parse XML tree. For every variable declared, retrieve the value from this node and store it. Reimplemented in CVideoOptions. |