Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Output.hpp File Reference

#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "Types.hpp"
#include "Error.hpp"

Go to the source code of this file.

Compounds

class  Output

Defines

#define OUTPUT_STATIC

Functions

char FileExists (char *filename)
void RemoveFile (char *filename)

Variables

char usedosnewline


Define Documentation

#define OUTPUT_STATIC
 

Definition at line 59 of file Output.hpp.


Function Documentation

char FileExists char *    filename [inline]
 

Definition at line 267 of file Output.hpp.

00268 {
00269 #ifdef WIN32
00270    _finddata_t fileinfo;
00271    long        handle=_findfirst(filename,&fileinfo);
00272    if(handle==-1)
00273       return 0;
00274    _findclose(handle);
00275    return 1;
00276 #else
00277    FILE *file=fopen(filename,"r");
00278    if(file==NULL)
00279       return 0;
00280    fclose(file);
00281    return 1;
00282 #endif
00283 }

void RemoveFile char *    filename [inline]
 

Definition at line 285 of file Output.hpp.

00286 {
00287    unlink(filename);
00288 }


Variable Documentation

char usedosnewline
 

Definition at line 51 of file Output.hpp.


Generated on Sat Oct 13 16:08:49 2001 for XMILL by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001