Cobalt Framework
beta
Console application support
|
00001 00008 #ifndef CBOPTIONFORM_H 00009 #define CBOPTIONFORM_H 00010 00011 #include <string.h> 00012 00016 struct CBOptionForm 00017 { 00019 unsigned int optionId ; 00024 char shortName ; 00029 const char * longName ; 00033 unsigned int parameterNum ; 00037 const char * description ; 00038 } ; 00039 00041 static const unsigned int CBNullOptionId = ((unsigned int) -1) ; 00042 00044 #define CBEndOfOptionForm {CBNullOptionId, '\0', NULL, 0, NULL} 00045 00052 static inline unsigned int 00053 CBIsEndOfOptionForm(const struct CBOptionForm * src) 00054 { 00055 return src->optionId == CBNullOptionId ; 00056 } 00057 00058 #endif /* CBOPTIONFORM_H */