awips2/nativeLib/rary.ohd.whfs/inc/dbms/RWRadarResult.h
root 8e80217e59 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: a02aeb236c [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 3360eb6c5f
2012-01-06 08:55:05 -06:00

58 lines
1.9 KiB
C

/*
File: RWRadarResult.h
Author : CDBGEN
Created : Wed Aug 06 12:34:16 EDT 2008 using database hd_ob83empty
Description: This header file is associated with its .pgc file
and defines functions and the table's record structure.
*/
#ifndef RWRadarResult_h
#define RWRadarResult_h
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <memory.h>
#include "DbmsAccess.h"
#include "DbmsUtils.h"
#include "List.h"
#include "GeneralUtil.h"
#include "dbmserrs.h"
#include "datetime.h"
#include "time_convert.h"
typedef struct _RWRadarResult
{
Node node;
char radid[4];
dtime_t obstime;
short num_gages;
char rad_avail[2];
double rw_bias_val_used;
double mem_span_used;
char edit_bias[2];
char ignore_radar[2];
List list;
} RWRadarResult;
/*
Function Prototypes
*/
RWRadarResult* GetRWRadarResult(const char * where);
RWRadarResult* SelectRWRadarResult(const char * where);
int SelectRWRadarResultCount(const char * where);
int PutRWRadarResult(const RWRadarResult * structPtr);
int InsertRWRadarResult(const RWRadarResult * structPtr);
int UpdateRWRadarResult(const RWRadarResult* structPtr, const char *where);
int DeleteRWRadarResult(const char *where);
int UpdateRWRadarResultByRecord (const RWRadarResult * newStructPtr, const RWRadarResult * oldStructPtr);
int InsertOrUpdateRWRadarResult(const RWRadarResult * structPtr);
int InsertIfUniqueRWRadarResult(const RWRadarResult * structPtr, bool *isUnique);
bool RWRadarResultExists(const RWRadarResult * structPtr);
int DeleteRWRadarResultByRecord(const RWRadarResult * structPtr);
void GetRWRadarResultPrimaryKeyWhereString (const RWRadarResult * structPtr, char returnWhereString[] );
void FreeRWRadarResult(RWRadarResult * structPtr);
DbStatus * GetRWRadarResultDbStatus();
void SetRWRadarResultErrorLogging(int value);
#endif