25 #ifndef _DBOG_RETRIEVER_H_
26 #define _DBOG_RETRIEVER_H_ 1
28 #define MAXSTRING 1024
41 const char *proc_type,
42 const char *proc_name,
45 #define RetCoordDim_SystemID(dbres,row) DB_RESULT(dbres,row,0)
46 #define RetCoordDim_Order(dbres,row) DB_RESULT(dbres,row,1)
47 #define RetCoordDim_Name(dbres,row) DB_RESULT(dbres,row,2)
48 #define RetCoordDim_Interval(dbres,row) DB_RESULT(dbres,row,3)
49 #define RetCoordDim_Units(dbres,row) DB_RESULT(dbres,row,4)
50 #define RetCoordDim_SubGroupID(dbres,row) DB_RESULT(dbres,row,5)
51 #define RetCoordDim_ID(dbres,row) DB_RESULT(dbres,row,6)
52 #define RetCoordDim_DataType(dbres,row) DB_RESULT(dbres,row,7)
53 #define RetCoordDim_TransType(dbres,row) DB_RESULT(dbres,row,8)
54 #define RetCoordDim_TransRange(dbres,row) DB_RESULT(dbres,row,9)
55 #define RetCoordDim_TransAlign(dbres,row) DB_RESULT(dbres,row,10)
56 #define RetCoordDim_Start(dbres,row) DB_RESULT(dbres,row,11)
57 #define RetCoordDim_Length(dbres,row) DB_RESULT(dbres,row,12)
65 const char *proc_type,
66 const char *proc_name,
69 #define RetCoordSystem_ID(dbres,row) DB_RESULT(dbres,row,0)
70 #define RetCoordSystem_Name(dbres,row) DB_RESULT(dbres,row,1)
79 const char *proc_type,
80 const char *proc_name,
83 #define RetCoordDimVar_CoordDimID(dbres,row) DB_RESULT(dbres,row,0)
84 #define RetCoordDimVar_DsID(dbres,row) DB_RESULT(dbres,row,1)
85 #define RetCoordDimVar_Priority(dbres,row) DB_RESULT(dbres,row,2)
86 #define RetCoordDimVar_Name(dbres,row) DB_RESULT(dbres,row,3)
94 const char *proc_type,
95 const char *proc_name,
98 #define RetDs_SubGroupID(dbres,row) DB_RESULT(dbres,row,0)
99 #define RetDs_SubGroupPriority(dbres,row) DB_RESULT(dbres,row,1)
100 #define RetDs_DsID(dbres,row) DB_RESULT(dbres,row,2)
101 #define RetDs_Name(dbres,row) DB_RESULT(dbres,row,3)
102 #define RetDs_Level(dbres,row) DB_RESULT(dbres,row,4)
103 #define RetDs_Site(dbres,row) DB_RESULT(dbres,row,5)
104 #define RetDs_Fac(dbres,row) DB_RESULT(dbres,row,6)
105 #define RetDs_SiteDep(dbres,row) DB_RESULT(dbres,row,7)
106 #define RetDs_FacDep(dbres,row) DB_RESULT(dbres,row,8)
107 #define RetDs_BegDateDep(dbres,row) DB_RESULT(dbres,row,9)
108 #define RetDs_EndDateDep(dbres,row) DB_RESULT(dbres,row,10)
116 const char *proc_type,
117 const char *proc_name,
120 #define Ret_GroupID(dbres,row) DB_RESULT(dbres,row,0)
121 #define Ret_SubGroupOrder(dbres,row) DB_RESULT(dbres,row,1)
122 #define Ret_SubGroupID(dbres,row) DB_RESULT(dbres,row,2)
123 #define Ret_GroupName(dbres,row) DB_RESULT(dbres,row,3)
124 #define Ret_SubGroupName(dbres,row) DB_RESULT(dbres,row,4)
132 const char *proc_type,
133 const char *proc_name,
136 #define RetVar_GroupID(dbres,row) DB_RESULT(dbres,row,0)
137 #define RetVar_VarID(dbres,row) DB_RESULT(dbres,row,1)
138 #define RetVar_Name(dbres,row) DB_RESULT(dbres,row,2)
139 #define RetVar_CoordSystemID(dbres,row) DB_RESULT(dbres,row,3)
140 #define RetVar_Units(dbres,row) DB_RESULT(dbres,row,4)
141 #define RetVar_DataType(dbres,row) DB_RESULT(dbres,row,5)
142 #define RetVar_StartOffset(dbres,row) DB_RESULT(dbres,row,6)
143 #define RetVar_EndOffset(dbres,row) DB_RESULT(dbres,row,7)
144 #define RetVar_Max(dbres,row) DB_RESULT(dbres,row,8)
145 #define RetVar_Min(dbres,row) DB_RESULT(dbres,row,9)
146 #define RetVar_Delta(dbres,row) DB_RESULT(dbres,row,10)
147 #define RetVar_ReqToRun(dbres,row) DB_RESULT(dbres,row,11)
148 #define RetVar_QCFlag(dbres,row) DB_RESULT(dbres,row,12)
149 #define RetVar_QCReqToRun(dbres,row) DB_RESULT(dbres,row,13)
157 const char *proc_type,
158 const char *proc_name,
161 #define RetVarDim_VarID(dbres,row) DB_RESULT(dbres,row,0)
162 #define RetVarDim_Order(dbres,row) DB_RESULT(dbres,row,1)
163 #define RetVarDim_Name(dbres,row) DB_RESULT(dbres,row,2)
171 const char *proc_type,
172 const char *proc_name,
175 #define RetVarName_VarID(dbres,row) DB_RESULT(dbres,row,0)
176 #define RetVarName_DsID(dbres,row) DB_RESULT(dbres,row,1)
177 #define RetVarName_Priority(dbres,row) DB_RESULT(dbres,row,2)
178 #define RetVarName_Name(dbres,row) DB_RESULT(dbres,row,3)
186 const char *proc_type,
187 const char *proc_name,
190 #define RetVarOut_VarID(dbres,row) DB_RESULT(dbres,row,0)
191 #define RetVarOut_DsName(dbres,row) DB_RESULT(dbres,row,1)
192 #define RetVarOut_DsLevel(dbres,row) DB_RESULT(dbres,row,2)
193 #define RetVarOut_VarName(dbres,row) DB_RESULT(dbres,row,3)
202 const char *proc_type,
203 const char *proc_name,
204 const char *datastream_name,
205 const char *datastream_level,
206 const char *subgroup_name,
208 const char *facility,
209 const char *site_dependency,
210 const char *facility_dependency,
211 time_t begin_date_dependency,
212 const char *group_name,
213 const char *vargroup_name,
216 DBStatus retrieverog_get_vardimnames(
218 const char *proc_type,
219 const char *proc_name,
220 const char *datastream_name,
221 const char *datastream_level,
222 const char *subgroup_name,
224 const char *facility,
225 const char *site_dependency,
226 const char *facility_dependency,
227 time_t begin_date_dependency,
228 const char *coord_system_name,
232 DBStatus retrieverog_get_coord_dims(
234 const char *proc_type,
235 const char *proc_name,
236 const char *ret_coord_system_name,
241 const char *ds_group_name,
242 const char *proc_type,
243 const char *proc_name,
246 DBStatus retrieverog_get_datastreams(
248 const char *proc_type,
249 const char *proc_name,
250 const char *ds_subgroup_name,
253 DBStatus retrieverog_select_ds_subgroup_name(
255 const char *proc_type,
256 const char *proc_name,
260 DBStatus retrieverog_get_ds_subgroups(
262 const char *proc_type,
263 const char *proc_name,
268 const char *proc_type,
269 const char *proc_name,
272 DBStatus retrieverog_get_ds_subgroups_by_group(
274 const char *proc_type,
275 const char *proc_name,
276 const char *group_name,
280 #define DsGroupPtype(dbres,row) DB_RESULT(dbres,row,0)
281 #define DsGroupPname(dbres,row) DB_RESULT(dbres,row,1)
282 #define DsGroupGname(dbres,row) DB_RESULT(dbres,row,2)
285 #define DsGroupSubGname(dbres,row) DB_RESULT(dbres,row,3)
286 #define DsGroupSubGorder(dbres,row) DB_RESULT(dbres,row,4)
291 #define DstreamName(dbres,row) DB_RESULT(dbres,row,2)
292 #define DstreamLevel(dbres,row) DB_RESULT(dbres,row,3)
293 #define DstreamSite(dbres,row) DB_RESULT(dbres,row,5)
294 #define DstreamFac(dbres,row) DB_RESULT(dbres,row,6)
295 #define DstreamSubPriority(dbres,row) DB_RESULT(dbres,row,7)
296 #define DstreamSiteDep(dbres,row) DB_RESULT(dbres,row,8)
297 #define DstreamFacDep(dbres,row) DB_RESULT(dbres,row,9)
298 #define DstreamBegDateDep(dbres,row) DB_RESULT(dbres,row,10)
299 #define DstreamEndDateDep(dbres,row) DB_RESULT(dbres,row,11)
307 #define VGgroupName(dbres,row) DB_RESULT(dbres,row,0)
308 #define VGvargroupName(dbres,row) DB_RESULT(dbres,row,3)
309 #define VGCoordSystemName(dbres,row) DB_RESULT(dbres,row,4)
310 #define VGgroupUnits(dbres,row) DB_RESULT(dbres,row,5)
311 #define VGgroupDataType(dbres,row) DB_RESULT(dbres,row,6)
312 #define VGgroupStartOffset(dbres,row) DB_RESULT(dbres,row,7)
313 #define VGgroupEndOffset(dbres,row) DB_RESULT(dbres,row,8)
314 #define VGgroupMax(dbres,row) DB_RESULT(dbres,row,9)
315 #define VGgroupMin(dbres,row) DB_RESULT(dbres,row,10)
316 #define VGgroupDelta(dbres,row) DB_RESULT(dbres,row,11)
317 #define VGgroupReqRunFlg(dbres,row) DB_RESULT(dbres,row,12)
318 #define VGgroupQCFlg(dbres,row) DB_RESULT(dbres,row,13)
319 #define VGgroupQCReqRunFlag(dbres,row) DB_RESULT(dbres,row,14)
324 #define RetVname(dbres,row) DB_RESULT(dbres,row,12)
325 #define RetVpriority(dbres,row) DB_RESULT(dbres,row,13)
330 #define RetVarDname(dbres,row) DB_RESULT(dbres,row,12)
331 #define RetVarDpriority(dbres,row) DB_RESULT(dbres,row,13)
335 #define RetCDimDimName(dbres,row) DB_RESULT(dbres,row,3)
336 #define RetCDimDimOrder(dbres,row) DB_RESULT(dbres,row,4)
337 #define RetCDimSubgroupName(dbres,row) DB_RESULT(dbres,row,5)
338 #define RetCDimInterval(dbres,row) DB_RESULT(dbres,row,6)
339 #define RetCDimUnits(dbres,row) DB_RESULT(dbres,row,7)