Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

ioroutines.hh File Reference

#include "constants.hh"
#include "readinput.hh"
#include "matrixbk.hh"
#include "slcimage.hh"
#include "productinfo.hh"
#include <cstdlib>

Go to the source code of this file.

Functions

void printcpu (bool init=false)
void inittest ()
bool doinitwrite (input_gen &generalinput, int16 imageid)
void initwrite (const char *file, int16 fileid)
void updatefile (const char *filein, const char *fileout)
bool readres (char *returnword, const int16 sizeofreturnword, const char *file, const char *patern, const int16 napatern=0)
matrix< real8readcoeff (const char *file, const char *pattern, const int16 Ncoefficients)
void updateprocesscontrol (const char *filein, int16 fileid)
void checkprocessing (const input_gen &generalinput, int16 alreadyprocessed[NUMPROCESSES])
void checkrequest (int16 step, int16 alreadyprocess[NUMPROCESSES],...)
void fillcheckprocess (const char *line, int16 checkprocess[NUMPROCESSES], int16 fileid)
void fillprocessed (const char *line, int16 checkprocess[NUMPROCESSES], int16 fileid)
void removedatleader (const char *file)
bool existed (const char *file)
uint filesize (const char *file)
int32 filelines (const char *file)
void getanswer ()
void openfstream (ifstream &str, const char *ifilename)
void openfstream (ofstream &str, const char *ofilename, const bool overwrit)
void bk_assert (const ifstream &str, const char *ifilename, const char *callingfilename="?", int32 linenumber=0)
void bk_assert (const ofstream &str, const char *ofilename, const char *callingfilename="?", int32 linenumber=0)
void tolower (char *s)
void toupper (char *s)
window getoverlap (const window &master, const window &slave)
window getoverlap (const slcimage &master, const slcimage &slave, const matrix< real8 > &cpmL, const matrix< real8 > &cpmP)


Function Documentation

void bk_assert const ofstream &  str,
const char *  ofilename,
const char *  callingfilename = "?",
int32  linenumber = 0
 

Definition at line 2255 of file ioroutines.cc.

References DEBUG, ERROR, file_error, bk_messages::get_str(), int32, bk_messages::print(), PRINT_ERROR, and TRACE_FUNCTION.

Referenced by azimuthfilter(), checkprocessing(), coarsecorrel(), coarsecorrelfft(), coarseporbit(), compcoherence(), compinterfero(), convertgetorbout(), coregpm(), dinsar(), envisat_dump_data(), filelines(), filesize(), productinfo::fillproductinfo(), slcimage::fillslcimage(), finecoreg(), flatearth(), geocode(), getofffile(), getorb(), orbit::initialize(), initwrite(), OversampleSLC(), phasefilter(), phasefilterspectral(), preview(), radarcodedem(), radarsat_dump_data(), rangefilter(), rangefiltporbits(), readcoeff(), readdat(), readinput(), readleader(), readnull(), productinfo::readphase(), readres(), readvolume(), removedatleader(), resample(), slant2hambiguity(), slant2hrodriguez(), slant2hschwabisch(), snaphu_unwrap(), spatialphasefilt(), subtrrefdem(), subtrrefpha(), unwraptreeframon(), updatefile(), updateprocesscontrol(), slcimage::updateslcimage(), slcimage::updateslcimageML(), and writeslc().

void bk_assert const ifstream &  str,
const char *  ifilename,
const char *  callingfilename = "?",
int32  linenumber = 0
 

Definition at line 2221 of file ioroutines.cc.

References DEBUG, ERROR, file_error, bk_messages::get_str(), int32, bk_messages::print(), PRINT_ERROR, and TRACE_FUNCTION.

void checkprocessing const input_gen generalinput,
int16  alreadyprocessed[NUMPROCESSES]
 

Definition at line 989 of file ioroutines.cc.

References bk_assert(), checkrequest(), DEBUG, existed(), fillcheckprocess(), fillprocessed(), getanswer(), input_gen::i_resfile, input_error, int16, int32, input_gen::interactive, INTERFID, input_gen::m_resfile, MASTERID, NUMPROCESSES, ONE27, pr_m_readfiles, bk_messages::print(), PRINT_ERROR, input_gen::process, processcontrol, input_gen::s_resfile, SLAVEID, TRACE_FUNCTION, updateprocesscontrol(), and WARNING.

Referenced by main().

void checkrequest int16  step,
int16  alreadyprocess[NUMPROCESSES],
... 
 

Definition at line 1250 of file ioroutines.cc.

References ERROR, bk_messages::get_str(), input_error, int16, int32, bk_messages::print(), PRINT_ERROR, processcontrol, TRACE_FUNCTION, and WARNING.

Referenced by checkprocessing().

bool doinitwrite input_gen generalinput,
int16  imageid
 

Definition at line 322 of file ioroutines.cc.

References int16, INTERFID, MASTERID, pr_m_readfiles, PRINT_ERROR, input_gen::process, SLAVEID, some_error, and TRACE_FUNCTION.

Referenced by main().

bool existed const char *  file  ) 
 

Definition at line 1816 of file ioroutines.cc.

References DEBUG, and bk_messages::print().

Referenced by checkcomprefdem(), checkfiltphase(), checkfiltrange(), checkprocessing(), handleinput(), initwrite(), main(), openfstream(), readinput(), unwraptreeframon(), and updateprocesscontrol().

int32 filelines const char *  file  ) 
 

Definition at line 1785 of file ioroutines.cc.

References bk_assert(), int32, ONE27, and TRACE_FUNCTION.

Referenced by fileci2tomatcr4(), readinput(), snaphu_unwrap(), and unwraptreeframon().

uint filesize const char *  file  ) 
 

Definition at line 1914 of file ioroutines.cc.

References bk_assert(), TRACE_FUNCTION, and uint.

void fillcheckprocess const char *  line,
int16  checkprocess[NUMPROCESSES],
int16  fileid
 

Referenced by checkprocessing(), and updateprocesscontrol().

void fillprocessed const char *  line,
int16  checkprocess[NUMPROCESSES],
int16  fileid
 

Referenced by checkprocessing().

void getanswer  ) 
 

Definition at line 642 of file ioroutines.cc.

References TRACE_FUNCTION.

Referenced by checkprocessing(), getorb(), main(), and readvolume().

window getoverlap const slcimage master,
const slcimage slave,
const matrix< real8 > &  cpmL,
const matrix< real8 > &  cpmP
 

Definition at line 1958 of file ioroutines.cc.

References slcimage::currentwindow, DEBUG, window::disp(), INFO, int32, window::linehi, window::linelo, max(), min(), normalize(), slcimage::originalwindow, window::pixhi, window::pixlo, polyval(), bk_messages::print(), real8, and TRACE_FUNCTION.

Referenced by main(), rangefiltporbits(), and resample().

window getoverlap const window master,
const window slave
 

Definition at line 1937 of file ioroutines.cc.

References window::linehi, window::linelo, window::pixhi, window::pixlo, and TRACE_FUNCTION.

void inittest  ) 
 

Definition at line 144 of file ioroutines.cc.

References compli16, compli32, complr4, complr8, DEBUG, INFO, int16, int32, bk_messages::print(), PRINT_ERROR, real4, real8, some_error, strptime(), input_ell::test(), window::test(), cn::test(), TRACE_FUNCTION, uint, and WARNING.

Referenced by main().

void initwrite const char *  file,
int16  fileid
 

Definition at line 398 of file ioroutines.cc.

References bk_assert(), DEBUG, existed(), int16, INTERFID, LOGID, MASTERID, pr_m_readfiles, bk_messages::print(), PRINT_ERROR, processcontrol, SLAVEID, SWNAME, SWVERSION, TRACE_FUNCTION, and unhandled_case_error.

Referenced by main().

void openfstream ofstream &  str,
const char *  ofilename,
const bool  overwrit
 

Definition at line 2168 of file ioroutines.cc.

References DEBUG, ERROR, existed(), file_error, bk_messages::get_str(), bk_messages::print(), PRINT_ERROR, and TRACE_FUNCTION.

Referenced by azimuthfilter(), coarsecorrel(), coarsecorrelfft(), compcoherence(), compinterfero(), coregpm(), dinsar(), flatearth(), geocode(), getofffile(), OversampleSLC(), phasefilter(), phasefilterspectral(), radarcodedem(), radarsat_dump_data(), rangefilter(), rangefiltporbits(), readdat(), readleader(), readnull(), productinfo::readphase(), readvolume(), resample(), slant2hambiguity(), slant2hrodriguez(), slant2hschwabisch(), spatialphasefilt(), subtrrefdem(), subtrrefpha(), unwraptreeframon(), and writeslc().

void openfstream ifstream &  str,
const char *  ifilename
 

Definition at line 2139 of file ioroutines.cc.

References DEBUG, bk_messages::print(), and TRACE_FUNCTION.

void printcpu bool  init = false  ) 
 

Definition at line 79 of file ioroutines.cc.

References DEBUG, INFO, int32, bk_messages::print(), real4, and TRACE_FUNCTION.

Referenced by coherence(), and main().

matrix<real8> readcoeff const char *  file,
const char *  pattern,
const int16  Ncoefficients
 

Definition at line 2070 of file ioroutines.cc.

References bk_assert(), EIGHTY, ERROR, file_error, bk_messages::get_str(), INFO, int16, int32, ONE27, bk_messages::print(), PRINT_ERROR, and TRACE_FUNCTION.

Referenced by coregpm(), and main().

bool readres char *  returnword,
const int16  sizeofreturnword,
const char *  file,
const char *  patern,
const int16  napatern = 0
 

Definition at line 678 of file ioroutines.cc.

References bk_assert(), DEBUG, EIGHTY, ERROR, file_error, bk_messages::get_str(), int16, int32, ONE27, bk_messages::print(), PRINT_ERROR, TRACE_FUNCTION, and WARNING.

Referenced by main().

void removedatleader const char *  file  ) 
 

Definition at line 1852 of file ioroutines.cc.

References bk_assert(), ERROR, file_error, bk_messages::get_str(), ONE27, PRINT_ERROR, and TRACE_FUNCTION.

Referenced by main().

void tolower char *  s  ) 
 

Definition at line 2287 of file ioroutines.cc.

References TRACE_FUNCTION.

void toupper char *  s  ) 
 

Definition at line 2305 of file ioroutines.cc.

References TRACE_FUNCTION.

Referenced by readinput(), and readleader().

void updatefile const char *  filein,
const char *  fileout
 

Definition at line 591 of file ioroutines.cc.

References bk_assert(), DEBUG, ONE27, bk_messages::print(), TRACE_FUNCTION, and WARNING.

Referenced by main().

void updateprocesscontrol const char *  filein,
int16  fileid
 

Definition at line 776 of file ioroutines.cc.

References bk_assert(), EIGHTY, ERROR, existed(), fillcheckprocess(), bk_messages::get_str(), int16, int32, INTERFID, MASTERID, NUMPROCESSES, ONE27, pr_m_readfiles, bk_messages::print(), PRINT_ERROR, processcontrol, SLAVEID, TRACE_FUNCTION, unhandled_case_error, and WARNING.

Referenced by checkprocessing(), and main().


Generated on Fri Apr 22 15:58:09 2005 for Doris by doxygen 1.3.6