Cobalt Framework  beta
Console application support
CBCommandForm.h
Go to the documentation of this file.
00001 
00008 #ifndef CBCOMMANDFORM_H
00009 #define CBCOMMANDFORM_H
00010 
00011 #include "CBForwarders.h"
00012 
00016 struct CBCommandForm
00017 {
00023     const char *                        commandName ;
00027     const struct CBOptionForm *         optionForms ;
00031     unsigned int                        parameterNum ;
00032 } ;
00033 
00035 #define CBEndOfCommandForm  {NULL, NULL, 0}
00036 
00043 static inline unsigned int
00044 CBIsEndOfCommandForm(const struct CBCommandForm * src)
00045 {
00046     return (src->commandName == NULL)
00047         && (src->optionForms == NULL)
00048         && (src->parameterNum == 0) ;
00049 }
00050 
00051 #endif  /* CBCOMMANDFORM_H */
 All Classes Files Functions Variables Enumerations Enumerator Defines