Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]] Former-commit-id:06a8b51d6d
Former-commit-id:3360eb6c5f
51 lines
1.7 KiB
C
51 lines
1.7 KiB
C
/*
|
|
File: FcstHorizon.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 FcstHorizon_h
|
|
#define FcstHorizon_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 _FcstHorizon
|
|
{
|
|
Node node;
|
|
char fcst_horizon[31];
|
|
List list;
|
|
} FcstHorizon;
|
|
/*
|
|
Function Prototypes
|
|
*/
|
|
FcstHorizon* GetFcstHorizon(const char * where);
|
|
FcstHorizon* SelectFcstHorizon(const char * where);
|
|
int SelectFcstHorizonCount(const char * where);
|
|
int PutFcstHorizon(const FcstHorizon * structPtr);
|
|
int InsertFcstHorizon(const FcstHorizon * structPtr);
|
|
int UpdateFcstHorizon(const FcstHorizon* structPtr, const char *where);
|
|
int DeleteFcstHorizon(const char *where);
|
|
int UpdateFcstHorizonByRecord (const FcstHorizon * newStructPtr, const FcstHorizon * oldStructPtr);
|
|
int InsertOrUpdateFcstHorizon(const FcstHorizon * structPtr);
|
|
int InsertIfUniqueFcstHorizon(const FcstHorizon * structPtr, bool *isUnique);
|
|
bool FcstHorizonExists(const FcstHorizon * structPtr);
|
|
int DeleteFcstHorizonByRecord(const FcstHorizon * structPtr);
|
|
void GetFcstHorizonPrimaryKeyWhereString (const FcstHorizon * structPtr, char returnWhereString[] );
|
|
void FreeFcstHorizon(FcstHorizon * structPtr);
|
|
DbStatus * GetFcstHorizonDbStatus();
|
|
void SetFcstHorizonErrorLogging(int value);
|
|
#endif
|