Mapper
Classes | Macros | Functions | Variables
rateint.c File Reference
#include <sqlhdr.h>
#include "rate_table.h"
#include <math.h>
Include dependency graph for rateint.c:

Go to the source code of this file.

Classes

struct  sqlca_s
 
struct  sqlca_s::sqlcaw_s
 

Macros

#define SQLCA_INCL
 
#define SQLNOTFOUND   100
 

Functions

_SQCURSOR * _iqnprep ()
 
int get_rate (char *hb5in, int zdate)
 
int GetFlow (char *ihb5, int zdate, double Stage, int *Warning)
 
int BelowStage2Flow (RatingTable rate_table, double ShiftStage)
 
int AboveStage2Flow (RatingTable rate_table, double ShiftStage)
 
int ExactStage2Flow (RatingTable rate_table, int i)
 
int InterpolateStage2Flow (RatingTable rate_table, double ShiftStage, int i)
 
double GetStage (char *ihb5, int zdate, int Flow, int *Warning)
 
double BelowFlow2Stage (RatingTable rate_table, int Flow)
 
double AboveFlow2Stage (RatingTable rate_table, int Flow)
 
double ExactFlow2Stage (RatingTable rate_table, int i)
 
double InterpolateFlow2Stage (RatingTable rate_table, int Flow, int i)
 
RatingTable getrc (char *ihb5, int zdate, int *Warning)
 

Variables

static char * _Cn2 = "ratecursor"
 
static _SQCURSOR * _SQ2 = 0
 
static char * _Cn1 = "shiftcursor"
 
static _SQCURSOR * _SQ1 = 0
 
struct sqlca_s sqlca
 
long SQLCODE
 
static char savehb5 [10]
 
static RatingTable rate_table
 
static ShiftTable shift_table
 
int begin_year
 
int begin_month
 
int begin_day
 
int max
 
double Val [10]
 
double Sh [10]
 

Macro Definition Documentation

◆ SQLCA_INCL

#define SQLCA_INCL

Definition at line 40 of file rateint.c.

◆ SQLNOTFOUND

#define SQLNOTFOUND   100

Definition at line 86 of file rateint.c.

Function Documentation

◆ _iqnprep()

_SQCURSOR* _iqnprep ( )

◆ AboveFlow2Stage()

double AboveFlow2Stage ( RatingTable  rate_table,
int  Flow 
)

Definition at line 1853 of file rateint.c.

Here is the caller graph for this function:

◆ AboveStage2Flow()

int AboveStage2Flow ( RatingTable  rate_table,
double  ShiftStage 
)

Definition at line 1626 of file rateint.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BelowFlow2Stage()

double BelowFlow2Stage ( RatingTable  rate_table,
int  Flow 
)

Definition at line 1837 of file rateint.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BelowStage2Flow()

int BelowStage2Flow ( RatingTable  rate_table,
double  ShiftStage 
)

Definition at line 1605 of file rateint.c.

Here is the caller graph for this function:

◆ ExactFlow2Stage()

double ExactFlow2Stage ( RatingTable  rate_table,
int  i 
)

Definition at line 1888 of file rateint.c.

Here is the caller graph for this function:

◆ ExactStage2Flow()

int ExactStage2Flow ( RatingTable  rate_table,
int  i 
)

Definition at line 1668 of file rateint.c.

Here is the caller graph for this function:

◆ get_rate()

int get_rate ( char *  hb5in,
int  zdate 
)

Definition at line 99 of file rateint.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFlow()

int GetFlow ( char *  ihb5,
int  zdate,
double  Stage,
int *  Warning 
)

Definition at line 1503 of file rateint.c.

Here is the call graph for this function:

◆ getrc()

RatingTable getrc ( char *  ihb5,
int  zdate,
int *  Warning 
)

Definition at line 1935 of file rateint.c.

Here is the call graph for this function:

◆ GetStage()

double GetStage ( char *  ihb5,
int  zdate,
int  Flow,
int *  Warning 
)

Definition at line 1728 of file rateint.c.

Here is the call graph for this function:

◆ InterpolateFlow2Stage()

double InterpolateFlow2Stage ( RatingTable  rate_table,
int  Flow,
int  i 
)

Definition at line 1900 of file rateint.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InterpolateStage2Flow()

int InterpolateStage2Flow ( RatingTable  rate_table,
double  ShiftStage,
int  i 
)

Definition at line 1680 of file rateint.c.

Here is the caller graph for this function:

Variable Documentation

◆ _Cn1

char* _Cn1 = "shiftcursor"
static

Definition at line 4 of file rateint.c.

◆ _Cn2

char* _Cn2 = "ratecursor"
static

Definition at line 3 of file rateint.c.

◆ _SQ1

_SQCURSOR* _SQ1 = 0
static

Definition at line 4 of file rateint.c.

◆ _SQ2

_SQCURSOR* _SQ2 = 0
static

Definition at line 3 of file rateint.c.

◆ begin_day

int begin_day

Definition at line 94 of file rateint.c.

◆ begin_month

int begin_month

Definition at line 94 of file rateint.c.

◆ begin_year

int begin_year

Definition at line 94 of file rateint.c.

◆ max

int max

Definition at line 95 of file rateint.c.

◆ rate_table

RatingTable rate_table
static

Definition at line 92 of file rateint.c.

◆ savehb5

char savehb5[10]
static

Definition at line 91 of file rateint.c.

◆ Sh

double Sh[10]

Definition at line 96 of file rateint.c.

◆ shift_table

ShiftTable shift_table
static

Definition at line 93 of file rateint.c.

◆ sqlca

struct sqlca_s sqlca
extern

◆ SQLCODE

long SQLCODE
extern

◆ Val

double Val[10]

Definition at line 96 of file rateint.c.