Mapper
Classes | Macros | Functions | Variables
rate.c File Reference
#include <sqlhdr.h>
#include "rate_table.h"
#include <math.h>
Include dependency graph for rate.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 * _Cn4 = "ratecursor"
 
static _SQCURSOR * _SQ4 = 0
 
static char * _Cn3 = "selectrate"
 
static _SQCURSOR * _SQ3 = 0
 
static char * _Cn2 = "shiftcursor"
 
static _SQCURSOR * _SQ2 = 0
 
static char * _Cn1 = "selectshift"
 
static _SQCURSOR * _SQ1 = 0
 
struct sqlca_s sqlca
 
long SQLCODE
 
static char savehb5 [10]
 
static RatingTable rate_table
 
static ShiftTable shift_table
 

Macro Definition Documentation

◆ SQLCA_INCL

#define SQLCA_INCL

Definition at line 42 of file rate.c.

◆ SQLNOTFOUND

#define SQLNOTFOUND   100

Definition at line 88 of file rate.c.

Function Documentation

◆ _iqnprep()

_SQCURSOR* _iqnprep ( )
Here is the caller graph for this function:

◆ AboveFlow2Stage()

double AboveFlow2Stage ( RatingTable  rate_table,
int  Flow 
)

Definition at line 1800 of file rate.c.

Here is the caller graph for this function:

◆ AboveStage2Flow()

int AboveStage2Flow ( RatingTable  rate_table,
double  ShiftStage 
)

Definition at line 1610 of file rate.c.

Here is the caller graph for this function:

◆ BelowFlow2Stage()

double BelowFlow2Stage ( RatingTable  rate_table,
int  Flow 
)

Definition at line 1767 of file rate.c.

Here is the caller graph for this function:

◆ BelowStage2Flow()

int BelowStage2Flow ( RatingTable  rate_table,
double  ShiftStage 
)

Definition at line 1596 of file rate.c.

Here is the caller graph for this function:

◆ ExactFlow2Stage()

double ExactFlow2Stage ( RatingTable  rate_table,
int  i 
)

Definition at line 1850 of file rate.c.

Here is the caller graph for this function:

◆ ExactStage2Flow()

int ExactStage2Flow ( RatingTable  rate_table,
int  i 
)

Definition at line 1640 of file rate.c.

Here is the caller graph for this function:

◆ get_rate()

int get_rate ( char *  hb5in,
int  zdate 
)

Definition at line 97 of file rate.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 1501 of file rate.c.

Here is the call graph for this function:

◆ getrc()

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

Definition at line 1929 of file rate.c.

Here is the call graph for this function:

◆ GetStage()

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

Definition at line 1691 of file rate.c.

Here is the call graph for this function:

◆ InterpolateFlow2Stage()

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

Definition at line 1881 of file rate.c.

Here is the caller graph for this function:

◆ InterpolateStage2Flow()

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

Definition at line 1653 of file rate.c.

Here is the caller graph for this function:

Variable Documentation

◆ _Cn1

char* _Cn1 = "selectshift"
static

Definition at line 6 of file rate.c.

◆ _Cn2

char* _Cn2 = "shiftcursor"
static

Definition at line 5 of file rate.c.

◆ _Cn3

char* _Cn3 = "selectrate"
static

Definition at line 4 of file rate.c.

◆ _Cn4

char* _Cn4 = "ratecursor"
static

Definition at line 3 of file rate.c.

◆ _SQ1

_SQCURSOR* _SQ1 = 0
static

Definition at line 6 of file rate.c.

◆ _SQ2

_SQCURSOR* _SQ2 = 0
static

Definition at line 5 of file rate.c.

◆ _SQ3

_SQCURSOR* _SQ3 = 0
static

Definition at line 4 of file rate.c.

◆ _SQ4

_SQCURSOR* _SQ4 = 0
static

Definition at line 3 of file rate.c.

◆ rate_table

RatingTable rate_table
static

Definition at line 94 of file rate.c.

◆ savehb5

char savehb5[10]
static

Definition at line 93 of file rate.c.

◆ shift_table

ShiftTable shift_table
static

Definition at line 95 of file rate.c.

◆ sqlca

struct sqlca_s sqlca
extern

◆ SQLCODE

long SQLCODE
extern