Options
IntroductionProvides commandline parsing
FunctionsfreeOptionsstatic inline void freeOptions ( Options *options) ParametersDiscussionDeallocates the contents of option parseArgumentsstatic inline bool parseArguments ( int argc, char **argv, Options *options) ParametersReturn Valuefalse, if there are errors. ture, if everything was ok DiscussionParses the arguments given with the command line and sets the fields of options printOptionsstatic inline void printOptions ( Options *options) ParametersDiscussionPrints the contents of the fields in options printUsagestatic inline void printUsage () DiscussionPrints the usage of the fields in options setDefaultValuesstatic inline void setDefaultValues ( Options *options) ParametersDiscussionSets the fields of an option structure to default values Typedefs
DISOIFF_ToolModeMode for choosing what feature of the tool to use typedef enum ISOIFF_ToolMode { ISOIFF_ToolMode_Write, ISOIFF_ToolMode_Read, ISOIFF_ToolMode_NotSet } ISOIFF_ToolMode; Constants
See Also ISOIFF_ToolModeMode for choosing what feature of the tool to use typedef enum ISOIFF_ToolMode { ISOIFF_ToolMode_Write, ISOIFF_ToolMode_Read, ISOIFF_ToolMode_NotSet } ISOIFF_ToolMode; Constants
See Also OptionsOptions, which can be parsed from the commandline. typedef struct OptionsStruct { ISOIFF_ToolMode mode; char *inputFile; char *outputFile; int debugLevel; bool isJustAskingForHelp; int width; int height; } Options; FieldsSee Also Structs and Unions
OptionsStructOptions, which can be parsed from the commandline. typedef struct OptionsStruct { ISOIFF_ToolMode mode; char *inputFile; char *outputFile; int debugLevel; bool isJustAskingForHelp; int width; int height; } Options; FieldsSee Also |