STDBPATH.C - SeT DataBase PATH
The standard database path routines. These 6 routines have been broken
out from DTFL_ACC.C (which is where they belong) so programs like
FIB_CALC could use them and not suck in all the data access routines
they don't need. The define_database() call is used by programs that
don't use program configuration files. Program that do use prc_cnfg.c
will get the validate_data_type() and validate_data_path_str() called for
them from the cnfg_table and just need to call set_database_vars().
Function
|
dspy_stdbpath_prc_globals
|
Include file
|
STDBPATH.H
|
Prototype
|
void dspy_stdbpath_prc_globals( void )
|
Remarks
|
Display the process global vars for module - stdbpath.
|
Function
|
define_database
|
Include file
|
STDBPATH.H
|
Prototype
|
void define_database( char *database_type , char *database_path )
|
Remarks
|
Define and validate a database.
|
Function
|
validate_data_type
|
Include file
|
STDBPATH.H
|
Prototype
|
void validate_data_type( char *str )
|
Remarks
|
Validate the user requested data_type with the module local
char *data_types[]. Set GLOBAL var database_type with either the valid
type or DATA_UNKNOWN.
|
Function
|
validate_data_path_str
|
Include file
|
STDBPATH.H
|
Prototype
|
void validate_data_path_str( char *str )
|
Remarks
|
This routine just validates that the user str is a valid terminated file
path str. The actual validation of the data directory can't happen until
we also know the database_type so we'll have to wait till the next routine
for that. The GLOBAL var data_path will be set with its own copy of the
final str.
|
Function
|
set_database_vars
|
Include file
|
STDBPATH.H
|
Prototype
|
void set_database_vars( void )
|
Remarks
|
Set the GLOBAL vars master_rec_size & data_rec_size. Also now validate
that the data_path directory does have a master file.
|
Function
|
set_database_vars_from_registry
|
Include file
|
STDBPATH.H
|
Prototype
|
void set_database_vars_from_registry( void )
|
Remarks
|
Define and validate a database using the entries in the registry.
|
Table of Contents
Function Index
generated on 22 September 1998 - 12:55:37
© 1998 Tierra del Fuego Ltd.
|