Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:377dcd10b9
[formerly3360eb6c5f
] Former-commit-id:8e80217e59
65 lines
1.9 KiB
C
65 lines
1.9 KiB
C
/*
|
|
File: FcstHeight.h
|
|
Author : CDBGEN
|
|
Created : Wed Aug 06 12:34:15 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 FcstHeight_h
|
|
#define FcstHeight_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 _FcstHeight
|
|
{
|
|
Node node;
|
|
char lid[9];
|
|
char pe[3];
|
|
short dur;
|
|
char ts[3];
|
|
char extremum[2];
|
|
float probability;
|
|
dtime_t validtime;
|
|
dtime_t basistime;
|
|
double value;
|
|
char shef_qual_code[2];
|
|
long quality_code;
|
|
short revision;
|
|
char product_id[11];
|
|
dtime_t producttime;
|
|
dtime_t postingtime;
|
|
List list;
|
|
} FcstHeight;
|
|
/*
|
|
Function Prototypes
|
|
*/
|
|
FcstHeight* GetFcstHeight(const char * where);
|
|
FcstHeight* SelectFcstHeight(const char * where);
|
|
int SelectFcstHeightCount(const char * where);
|
|
int PutFcstHeight(const FcstHeight * structPtr);
|
|
int InsertFcstHeight(const FcstHeight * structPtr);
|
|
int UpdateFcstHeight(const FcstHeight* structPtr, const char *where);
|
|
int DeleteFcstHeight(const char *where);
|
|
int UpdateFcstHeightByRecord (const FcstHeight * newStructPtr, const FcstHeight * oldStructPtr);
|
|
int InsertOrUpdateFcstHeight(const FcstHeight * structPtr);
|
|
int InsertIfUniqueFcstHeight(const FcstHeight * structPtr, bool *isUnique);
|
|
bool FcstHeightExists(const FcstHeight * structPtr);
|
|
int DeleteFcstHeightByRecord(const FcstHeight * structPtr);
|
|
void GetFcstHeightPrimaryKeyWhereString (const FcstHeight * structPtr, char returnWhereString[] );
|
|
void FreeFcstHeight(FcstHeight * structPtr);
|
|
DbStatus * GetFcstHeightDbStatus();
|
|
void SetFcstHeightErrorLogging(int value);
|
|
#endif
|