Mapper
Classes | Macros | Typedefs | Functions | Variables
rat.c File Reference
#include <sqlhdr.h>
#include <sqliapi.h>
#include "prototypes_new.h"
#include <math.h>
#include "ifxtypes.h"
Include dependency graph for rat.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
 

Typedefs

typedef struct sqlca_s ifx_sqlca_t
 

Functions

int get_rate (char *hb5in, char pe1, char pe2, int zdate)
 
double Astage (char *ihb5, char pe1, char pe2, int zdate, double Stage, int *Warning)
 
int GetFlow (char *ihb5, char pe1, char pe2, int zdate, double Stage, int *Warning)
 
int GetAFlow (char *ihb5, char pe1, char pe2, 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, char pe1, char pe2, 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, char pe1, char pe2, int zdate, int *Warning)
 

Variables

static const char _Cn2 [] = "ratecursor"
 
static const char _Cn1 [] = "shiftcursor"
 
struct sqlca_s sqlca
 
int4 SQLCODE
 
char SQLSTATE []
 
static char savehb5 [10]
 
static char savepe1
 
static char savepe2
 
static RatingTable rate_table
 
static ShiftTable shift_table
 
static int begin_year
 
static int begin_month
 
static int begin_day
 
static int max
 
static double Val [10]
 
static double Sh [10]
 
static double Slope
 
static double b
 
static double stg_int
 
static double dadj
 

Macro Definition Documentation

◆ SQLCA_INCL

#define SQLCA_INCL

Definition at line 39 of file rat.c.

◆ SQLNOTFOUND

#define SQLNOTFOUND   100

Definition at line 96 of file rat.c.

Typedef Documentation

◆ ifx_sqlca_t

typedef struct sqlca_s ifx_sqlca_t

Function Documentation

◆ AboveFlow2Stage()

double AboveFlow2Stage ( RatingTable  rate_table,
int  Flow 
)

Definition at line 2257 of file rat.c.

Here is the caller graph for this function:

◆ AboveStage2Flow()

int AboveStage2Flow ( RatingTable  rate_table,
double  ShiftStage 
)

Definition at line 2007 of file rat.c.

Here is the caller graph for this function:

◆ Astage()

double Astage ( char *  ihb5,
char  pe1,
char  pe2,
int  zdate,
double  Stage,
int *  Warning 
)

Definition at line 1688 of file rat.c.

Here is the call graph for this function:

◆ BelowFlow2Stage()

double BelowFlow2Stage ( RatingTable  rate_table,
int  Flow 
)

Definition at line 2240 of file rat.c.

Here is the caller graph for this function:

◆ BelowStage2Flow()

int BelowStage2Flow ( RatingTable  rate_table,
double  ShiftStage 
)

Definition at line 1979 of file rat.c.

Here is the caller graph for this function:

◆ ExactFlow2Stage()

double ExactFlow2Stage ( RatingTable  rate_table,
int  i 
)

Definition at line 2292 of file rat.c.

Here is the caller graph for this function:

◆ ExactStage2Flow()

int ExactStage2Flow ( RatingTable  rate_table,
int  i 
)

Definition at line 2047 of file rat.c.

Here is the caller graph for this function:

◆ get_rate()

int get_rate ( char *  hb5in,
char  pe1,
char  pe2,
int  zdate 
)

Definition at line 145 of file rat.c.

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

◆ GetAFlow()

int GetAFlow ( char *  ihb5,
char  pe1,
char  pe2,
int  zdate,
double  Stage,
int *  Warning 
)

Shift the given Stage

Definition at line 1861 of file rat.c.

Here is the call graph for this function:

◆ GetFlow()

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

Shift the given Stage

Definition at line 1746 of file rat.c.

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

◆ getrc()

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

Definition at line 2343 of file rat.c.

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

◆ GetStage()

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

Shift the Stage

Round the Stage to the hundreth place and check that value forwarning

Definition at line 2110 of file rat.c.

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

◆ InterpolateFlow2Stage()

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

Definition at line 2305 of file rat.c.

Here is the caller graph for this function:

◆ InterpolateStage2Flow()

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

Definition at line 2059 of file rat.c.

Here is the caller graph for this function:

Variable Documentation

◆ _Cn1

const char _Cn1[] = "shiftcursor"
static

Definition at line 4 of file rat.c.

◆ _Cn2

const char _Cn2[] = "ratecursor"
static

Definition at line 3 of file rat.c.

◆ b

double b
static

Definition at line 135 of file rat.c.

◆ begin_day

int begin_day
static

Definition at line 133 of file rat.c.

◆ begin_month

int begin_month
static

Definition at line 133 of file rat.c.

◆ begin_year

int begin_year
static

Definition at line 133 of file rat.c.

◆ dadj

double dadj
static

Definition at line 135 of file rat.c.

◆ max

int max
static

Definition at line 134 of file rat.c.

◆ rate_table

RatingTable rate_table
static

Definition at line 131 of file rat.c.

◆ savehb5

char savehb5[10]
static

Definition at line 129 of file rat.c.

◆ savepe1

char savepe1
static

Definition at line 130 of file rat.c.

◆ savepe2

char savepe2
static

Definition at line 130 of file rat.c.

◆ Sh

double Sh[10]
static

Definition at line 135 of file rat.c.

◆ shift_table

ShiftTable shift_table
static

Definition at line 132 of file rat.c.

◆ Slope

double Slope
static

Definition at line 135 of file rat.c.

◆ sqlca

struct sqlca_s sqlca
extern

◆ SQLCODE

int4 SQLCODE
extern

◆ SQLSTATE

char SQLSTATE[]
extern

◆ stg_int

double stg_int
static

Definition at line 135 of file rat.c.

◆ Val

double Val[10]
static

Definition at line 135 of file rat.c.