bool Archive::WCheckOpen(const char *Name,const wchar *NameW) { if (!WOpen(Name,NameW)) return(false); if (!IsArchive(false)) { Close(); return(false); } return(true); }
bool Archive::WCheckOpen(const wchar *Name) { if (!WOpen(Name)) return false; if (!IsArchive(false)) { uiMsg(UIERROR_BADARCHIVE,FileName); Close(); return false; } return true; }
static void save_dipole_indices (int *selected, char *taglist, char *fname) { register int i; FILE *out = WOpen(fname); fprintf (out, "%d %d\n", selected[0], selected[1]); for (i=0; i<np; i++) if (taglist[i]==1) fprintf (out, "%d\n", i); for (i=0; i<np; i++) if (taglist[i]==2) fprintf (out, "%d\n", i); Zclose (out, fname); return; } /* end save_dipole_indices() */
bool Archive::WCheckOpen(const wchar *Name) { if (!WOpen(Name)) return false; if (!IsArchive(false)) { #ifndef SHELL_EXT Log(FileName,St(MNotRAR),FileName); #endif Close(); return false; } return true; }
bool Archive::WCheckOpen(char *Name,wchar *NameW) { if (!WOpen(Name,NameW)) return(false); if (!IsArchive(false)) { #ifndef SHELL_EXT Log(FileName,St(MNotRAR),FileName); #endif Close(); return(false); } return(true); }
// should check for valid streams GDLGStream* GetStream(bool open = true) { TidyWindowsList(); if (actWin == -1) { if (!open) return NULL; DString title = "GDL 0"; DLong xSize, ySize; DefaultXYSize(&xSize, &ySize); bool success = WOpen(0, title, xSize, ySize, -1, -1); if (!success) return NULL; if (actWin == -1) { std::cerr << "Internal error: plstream not set." << std::endl; exit(EXIT_FAILURE); } } return winList[actWin]; }
void File::TOpen(const char *Name,const wchar *NameW) { if (!WOpen(Name,NameW)) ErrHandler.Exit(OPEN_ERROR); }
/** This function is not called in bulk_extractor */ void File::TOpen(const char *Name,const wchar *NameW) { //Nothing to do for this function if (!WOpen(Name,NameW)) ErrHandler.Exit(OPEN_ERROR); }
void File::TOpen(const wchar *Name) { if (!WOpen(Name)) ErrHandler.Exit(RARX_OPEN); }