hdbcontr Class Reference

#include <hdbcontr.h>

List of all members.

Public Member Functions

 hdbcontr ()
void print (FILE *out)
 prints setup to file
void read (XFILE *in)
 reads steup from file
long restore_stat (void)
 returns whether restorage is required
long save_stat (void)
 returns whether saving is required
 ~hdbcontr ()

Public Attributes

hdbackupfmttype hdbfmtr
 format of backup file for restoring
hdbackupfmttype hdbfmts
 format of backup file for saving
char hdbnamer [1001]
 backup filename for restoring
char hdbnames [1001]
 backup filename for saving
hdbackuptype hdbtype
 type of backup on harddisk
long prec
 precision of real numbers in output files
answertype rmold
 flag for removing old previous backup files (rmold=1 - i.e. only one set of backup file will be hold)
long rmold_id
 id of previous backup files
sel selelemr
sel selelems
long ** selother_id
 array of indices of starting positions for restoring of other array
selselother_r
 selection of other components for restoring
selselother_s
 selection of other components for saving

Detailed Description

The class stores the setup of backup for particular SIFEL modules.

Definition at line 17 of file hdbcontr.h.


Constructor & Destructor Documentation

hdbcontr (  ) 

The constructor initializes data to the default values - no backup is set by default

Created by Tomas Koudelka, 06.2008

Definition at line 14 of file hdbcontr.cpp.

References hdbfmtr, hdbfmts, hdbnamer, hdbnames, hdbtype, no, nohdb, rmold, rmold_id, selother_id, selother_r, selother_s, and text.

~hdbcontr (  ) 

The destructor releases allocated memory.

Created by Tomas Koudelka, 06.2008

Definition at line 33 of file hdbcontr.cpp.

References sel::n, selelemr, selother_id, selother_r, and selother_s.


Member Function Documentation

void print ( FILE *  out  ) 

prints setup to file

The function prints the setup of the backup controller to the opened text file. The main usage is in the preprocessor.

Parameters:
out - pointer to the opened text file
Returns:
The function does not return anything.

Created by Tomas Koudelka, 06.2008

Definition at line 232 of file hdbcontr.cpp.

References hdbfmtr, hdbfmts, hdbnamer, hdbnames, hdbr_multiple, hdbr_nonloc, hdbr_single, hdbrs_multiple, hdbrs_nonloc, hdbrs_single, hdbs_multiple, hdbs_nonloc, hdbs_single, hdbtype, sel::n, nohdb, prec, sel::print(), print_err(), rmold, sel_all, sel_list, sel_no, sel_range, selelemr, selelems, selother_id, selother_r, selother_s, sel::st, and text.

Referenced by probdesct::print(), and probdesc::print().

void read ( XFILE in  ) 

reads steup from file

The function reads the setup of the backup controller form the opened text file.

Parameters:
in - pointer to the opened text file
Returns:
The function does not return anything.

Created by Tomas Koudelka, 06.2008

Definition at line 54 of file hdbcontr.cpp.

References answertype_kwdset(), hdbackupfmttype_kwdset(), hdbackuptype_kwdset(), hdbfmtr, hdbfmts, hdbnamer, hdbnames, hdbr_multiple, hdbr_nonloc, hdbr_single, hdbrs_multiple, hdbrs_nonloc, hdbrs_single, hdbs_multiple, hdbs_nonloc, hdbs_single, hdbtype, memset(), sel::n, prec, print_err(), sel::read(), rmold, sel_all, sel_list, sel_no, sel_range, selelemr, selelems, selother_id, selother_r, selother_s, sel::st, text, and xfscanf().

Referenced by probdesct::read(), and probdesc::read().

long restore_stat ( void   ) 
long save_stat ( void   ) 

Member Data Documentation

format of backup file for restoring

Definition at line 23 of file hdbcontr.h.

Referenced by hdbcontr(), print(), probdesc::probdesc(), probdesct::probdesct(), read(), restore_adjacip(), solver_restore(), and solvert_restore().

format of backup file for saving

Definition at line 25 of file hdbcontr.h.

Referenced by hdbcontr(), print(), probdesc::probdesc(), probdesct::probdesct(), read(), save_adjacip(), solver_save(), and solvert_save().

char hdbnamer[1001]
char hdbnames[1001]
long prec

flag for removing old previous backup files (rmold=1 - i.e. only one set of backup file will be hold)

Definition at line 27 of file hdbcontr.h.

Referenced by hdbcontr(), print(), read(), solver_save_binary_multiple(), solver_save_binary_single(), solver_save_text_multiple(), solver_save_text_single(), solvert_save_binary_multiple(), solvert_save_binary_single(), solvert_save_text_multiple(), and solvert_save_text_single().

long rmold_id
long** selother_id

The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2