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

ioroutines.cc File Reference

#include "constants.hh"
#include "ioroutines.hh"
#include "conversion.hh"
#include "refsystems.hh"
#include "utilities.hh"
#include "slcimage.hh"
#include "productinfo.hh"
#include "exceptions.hh"
#include <fstream>
#include <strstream>
#include <cstring>
#include <iomanip>
#include <cstdlib>
#include <cctype>
#include <cstdarg>
#include <algorithm>
#include <cstdio>
#include <ctime>

Go to the source code of this file.

Functions

char * strptime (const char *s, const char *format, struct tm *tm)
void printcpu (bool init)
void inittest ()
bool doinitwrite (input_gen &generalinput, int16 imageid)
void initwrite (const char *file, int16 fileid)
void updatefile (const char *sfile, const char *lfile)
void getanswer ()
bool readres (char *returnword, const int16 sizeofrw, const char *file, const char *pattern, const int16 skipwords)
void updateprocesscontrol (const char *file, int16 fileid)
void checkprocessing (const input_gen &generalinput, int16 checkprocess[NUMPROCESSES])
void checkrequest (int16 step, int16 alreadyprocess[NUMPROCESSES],...)
void fillcheckprocess (const char *line, int16 checkprocess[NUMPROCESSES+1], int16 fileid)
void fillprocessed (const char *line, int16 checkprocess[NUMPROCESSES+1], int16 fileid)
int32 filelines (const char *file)
bool existed (const char *file)
void removedatleader (const char *file)
uint filesize (const char *file)
window getoverlap (const window &master, const window &slave)
window getoverlap (const slcimage &master, const slcimage &slave, const matrix< real8 > &cpmL, const matrix< real8 > &cpmP)
matrix< real8readcoeff (const char *file, const char *pattern, const int16 Ncoeff)
void openfstream (ifstream &stream, const char *ifilename)
void openfstream (ofstream &stream, const char *ofilename, const bool overwrite)
void bk_assert (const ifstream &stream, const char *ofilename, const char *callingfile, int32 linenumber)
void bk_assert (const ofstream &stream, const char *ofilename, const char *callingfile, int32 linenumber)
void tolower (char *s)
void toupper (char *s)


Function Documentation

void bk_assert const ofstream &  stream,
const char *  ofilename,
const char *  callingfile,
int32  linenumber
 

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 &  stream,
const char *  ofilename,
const char *  callingfile,
int32  linenumber
 

Definition at line 2221 of file ioroutines.cc.

Referenced by dinsar().

void checkprocessing const input_gen generalinput,
int16  checkprocess[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+1],
int16  fileid
 

Definition at line 1322 of file ioroutines.cc.

References int16, INTERFID, MASTERID, NUMPROCESSES, ONE27, pr_m_readfiles, PRINT_ERROR, processcontrol, SLAVEID, TRACE_FUNCTION, and unhandled_case_error.

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

Definition at line 1638 of file ioroutines.cc.

References DEBUG, int16, int32, INTERFID, MASTERID, ONE27, pr_m_readfiles, bk_messages::print(), PRINT_ERROR, processcontrol, SLAVEID, TRACE_FUNCTION, and unhandled_case_error.

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.

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(), cn::test(), window::test(), input_ell::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 &  stream,
const char *  ofilename,
const bool  overwrite
 

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 &  stream,
const char *  ifilename
 

Definition at line 2139 of file ioroutines.cc.

void printcpu bool  init  ) 
 

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  Ncoeff
 

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  sizeofrw,
const char *  file,
const char *  pattern,
const int16  skipwords
 

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().

char* strptime const char *  s,
const char *  format,
struct tm *  tm
 

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 *  sfile,
const char *  lfile
 

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 *  file,
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