XSugar Tools  beta
SoftwareTools for XML processing
xsg-common-opt.h
Go to the documentation of this file.
00001 
00008 #import <Foundation/Foundation.h>
00009 
00011 typedef enum {
00012     XsgCommonHelpOptionId           = 1,        
00013     XsgCommonVerboseOptionId        = 2         
00014 } XsgCommonOptionId ;
00015 
00017 #define XsgCommonNextOptionId       3
00018 
00020 #define XsgCommonHelpOptionForm     {XsgCommonHelpOptionId, 'h', "help", 0, "Print help message"}
00021 
00022 #define XsgCommonVerboseOptionForm  {XsgCommonVerboseOptionId, 'v', "verbose", 0, "Print verbose message"}
00023 
00027 struct XsgCommonOption
00028 {
00030     BOOL        doVerbose ;
00031 } ;
00032 
00037 static inline void
00038 XsgInitCommonOption(struct XsgCommonOption * dst)
00039 {
00040     dst->doVerbose      = FALSE ;
00041 }
 All Classes Files Functions Variables Enumerations Enumerator Defines