Cobalt Framework
beta
Console application support
|
00001 00008 #ifndef CBOPTION_H 00009 #define CBOPTION_H 00010 00011 #include <Coconut/Coconut.h> 00012 #include "CBForwarders.h" 00013 00017 struct CBOption 00018 { 00020 struct CNObject superClass ; 00022 unsigned int optionId ; 00024 struct CNObjectList parameterList ; 00025 } ; 00026 00033 struct CBOption * 00034 CBAllocateOption(unsigned int optid, struct CNResource * resource) ; 00035 00040 static inline void 00041 CBReleaseOption(struct CBOption * src) 00042 { 00043 CNReleaseObject(&(src->superClass)) ; 00044 } 00045 00050 static inline unsigned int 00051 CBIdOfOption(const struct CBOption * src) 00052 { 00053 return src->optionId ; 00054 } 00055 00061 void 00062 CBAddParameterToOption(struct CBOption * dst, struct CNString * src) ; 00063 00069 static inline size_t 00070 CBCountOfParametersInOption(const struct CBOption * src) 00071 { 00072 return CNCountOfObjectsInList(&(src->parameterList)) ; 00073 } 00074 00081 static inline const struct CNListItem * 00082 CBFirstParameterInOption(const struct CBOption * src) 00083 { 00084 return (src->parameterList).firstItem ; 00085 } 00086 00087 #endif /* CBOPTION_H */