Class used for parsing options and configuration files.
The idea is simply to have one object that we can use to parse arguments for all command line programs, and API type function calls. The primary class implemented is DjVuParseOptions in the files "parseoptions.h" and "parseoptions.cpp".Normal usage is to first declare an array of djvu_option structures listing all the command line options. The last element of the array must be
{0,0,0,0}Typically the djvu_option array is declared statically.The next step is to declare the DjVuParseOptions class, passing it the name of the default profile to read values from. Profiles are normally contained in "/etc/DjVu" or "~/.DjVu" for UNIX. The location is stored in the registry for Windows. Legal profile variables can be any name beginning with a letter consisting of characters [-A-Za-z0-9]. This includes all command long options of this format in the djvu_option structure. Finally, you can tell your new DjVuParseOptions object to parse the command line arguments and use the class methods to determine the value specified for each option.
For a better understanding of this procedure continue on to the DjVuParseOptions Examples.
Alphabetic index Hierarchy of classes