Cobalt Framework  beta
Console application support
CBCommandLine.h
Go to the documentation of this file.
00001 
00008 #ifndef CBCOMMANDLINE_H
00009 #define CBCOMMANDLINE_H
00010 
00011 #include <Coconut/Coconut.h>
00012 #include "CBForwarders.h"
00013 
00017 struct CBCommandLine
00018 {
00020     struct CNObject         superClass ;
00022     const char *            applicationName ;
00024     struct CNObjectList     optionList ;
00026     struct CNObjectList     argumentList ;
00027 } ;
00028 
00035 struct CBCommandLine *
00036 CBAllocateCommandLine(const char * appname, struct CNResource * resource) ;
00037 
00042 static inline void
00043 CBReleaseCommandLine(struct CBCommandLine * dst)
00044 {
00045     CNReleaseObject(&(dst->superClass)) ;
00046 }
00047 
00053 static inline const char *
00054 CBApplicationNameInCommandLine(const struct CBCommandLine * src)
00055 {
00056     return src->applicationName ;
00057 }
00058 
00064 void
00065 CBAddOptionToCommandLine(struct CBCommandLine * dst, struct CBOption * src) ;
00066 
00073 static inline struct CNListItem *
00074 CBFirstOptionInCommandLine(const struct CBCommandLine * src)
00075 {
00076     return (src->optionList).firstItem ;
00077 }
00078 
00084 void
00085 CBAddArgumentToCommandLine(struct CBCommandLine * dst, struct CNString * src) ;
00086 
00093 static inline struct CNListItem *
00094 CBFirstArgumentInCommandLine(const struct CBCommandLine * src)
00095 {
00096     return (src->argumentList).firstItem ;
00097 }
00098 
00099 #endif  /* CBCOMMANDLINE_H */
 All Classes Files Functions Variables Enumerations Enumerator Defines