Sample: cleaning up Inheritance
[io/quag.git] / libs / basekit / source / MainArgs.h
blob310777a4334ed93da5a1fef062cbaed75b6e3612
1 /*#io
2 docCopyright("Steve Dekorte", 2002)
3 docLicense("BSD revised")
4 docDescription("Structure for copying and storing command line arguments.")
5 */
7 #ifndef MAINARGS_DEFINED
8 #define MAINARGS_DEFINED 1
10 #include "Common.h"
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 typedef struct
18 int argc;
19 const char **argv;
20 } MainArgs;
22 BASEKIT_API MainArgs *MainArgs_new(void);
23 BASEKIT_API void MainArgs_free(MainArgs *self);
25 BASEKIT_API void MainArgs_argc_argv_(MainArgs *self, int argc, const char **argv);
26 #define MainArgs_argCount(self) self->argc
27 #define MainArgs_argAt_(self, index) self->argv[index]
29 #ifdef __cplusplus
31 #endif
32 #endif