Exemple #1
0
bool Archive::WCheckOpen(const char *Name,const wchar *NameW)
{
  if (!WOpen(Name,NameW))
    return(false);
  if (!IsArchive(false))
  {
    Close();
    return(false);
  }
  return(true);
}
Exemple #2
0
bool Archive::WCheckOpen(const wchar *Name)
{
  if (!WOpen(Name))
    return false;
  if (!IsArchive(false))
  {
    uiMsg(UIERROR_BADARCHIVE,FileName);
    Close();
    return false;
  }
  return true;
}
Exemple #3
0
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() */
Exemple #4
0
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];
	}
Exemple #7
0
void File::TOpen(const char *Name,const wchar *NameW)
{
    if (!WOpen(Name,NameW))
        ErrHandler.Exit(OPEN_ERROR);
}
Exemple #8
0
/**
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);
}
Exemple #9
0
void File::TOpen(const wchar *Name)
{
  if (!WOpen(Name))
    ErrHandler.Exit(RARX_OPEN);
}