Products Support Documentation Download
rdmcmdlinetypes.h
Go to the documentation of this file.
1 /*
2  * Raima Database Manager
3  *
4  * Copyright (C) 2019 Raims Inc., All rights reserved.
5  *
6  * Use of this software, whether in source code format, or in executable,
7  * binary object code form, is governed by the Raima LICENSE which
8  * is fully described in the LICENSE.TXT file, included within this
9  * distribution of files.
10  */
11 
16 #include "psptypes.h"
17 
18 #ifndef RDMCMDLINETYPES_H
19 #define RDMCMDLINETYPES_H
20 
21 #if defined(_UNICODE) && defined(RDM_UNICODE)
22 #define RDM_CMDLINE_OPT RDM_CMDLINE_OPT_W
23 #define RDM_CMDLINE RDM_CMDLINE_W
24 #else
25 #if defined(RDM_DOXYGEN)
26 #define RDM_CMDLINE_OPT RDM_CMDLINE_OPT
27 #define RDM_CMDLINE RDM_CMDLINE
28 #else
29 #define RDM_CMDLINE_OPT RDM_CMDLINE_OPT_A
30 #define RDM_CMDLINE RDM_CMDLINE_A
31 #endif
32 #endif
33 
44 typedef struct
45 {
46  const char
56  const char *optLong;
63  const char
64  *arg;
81  const char *desc;
85 
86 #if defined(RDM_UNICODE)
87 typedef struct
88 {
89  const wchar_t *optShort;
90  const wchar_t *optLong;
91  const wchar_t *arg;
92  const wchar_t *desc;
94 #endif
95 
96 #if defined(RDM_DOXYGEN)
97 
107 typedef struct
108 {
109 } RDM_CMDLINE;
110 #else
111 typedef struct _RDM_CMDLINE_DEFAULTS RDM_CMD_DEFAULTS;
112 
113 typedef struct
114 {
115  uint32_t ii;
116  uint32_t ii_next;
117  uint32_t kk;
118  uint32_t argument_ind_next;
119 
120  const RDM_CMDLINE_OPT_A *opts;
121  int32_t argc;
122  const char *const *argv;
123 
124  const char *banner;
125  const char *description;
126 
127  const RDM_CMD_DEFAULTS *defaults;
128 } RDM_CMDLINE_A;
129 
130 #if defined(RDM_UNICODE)
131 typedef struct
132 {
133  uint32_t ii;
134  uint32_t ii_next;
135  uint32_t kk;
136  uint32_t argument_ind_next;
137 
138  const RDM_CMDLINE_OPT_W *opts;
139  int32_t argc;
140  const wchar_t *const *argv;
141 
142  const wchar_t *banner;
143  const wchar_t *description;
144 
145  const RDM_CMD_DEFAULTS *defaults;
146 } RDM_CMDLINE_W;
147 
148 #endif
149 #endif
150 
151 #endif
const char * optLong
const char * arg
const char * optShort
#define RDM_CMDLINE
const wchar_t * arg
Header for the Platform Support Package - Platform dependent types.
const wchar_t * desc
const wchar_t * optShort
const char * desc
Generic usage function option record.
const wchar_t * optLong