Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# XFuFileDef.h File Reference

This is a helper hack header file to turn sources using FILE * into our XFuFile class friendly ones. More...

Go to the source code of this file.

## Defines
#define | fopen(a, b) XFcFile::open((const CHAR *)(a), XFCSTR(b))
| Turns fopen() call into XFcFile::open() call.
#define | fseek(f, a, b) (f) ? f->seek(a, b) : 0
| Turns fseek() call into XFcFile::seek() call.
#define | ftell(f) (f) ? f->tell() : 0
| Turns ftell() call into XFcFile::tell() call.
#define | fgetc(f) (f) ? f->getChar() : 0
| Turns fgetc() call into XFcFile::getChar() call.
#define | fputc(c, f) (f) ? f->putChar(c) : 0
| Turns fputc() call into XFcFile::putChar() call.
#define | fread(bf, a, b, f) (f) ? f->read(bf, a, b) : 0
| Turns fread() call into XFcFile::read() call.
#define | fwrite(bf, a, b, f) (f) ? f->write(bf, a, b) : 0
| Turns fwrite() call into XFcFile::write() call.
#define | fclose(f) (f) ? f->close() : 0
| Turns fclose() call into XFcFile::close() call.
#define | FILE XFcFile
| Turns FILE variable into a XFcFile call.

## Detailed Description

This is a helper hack header file to turn sources using FILE * into our XFuFile class friendly ones.

X-Forge Util
Copyright 2000-2003 Fathammer Ltd

Id
  XFuFileDef.h,v 1.6 2003/08/12 13:33:52 lars Exp

Date
  2003/08/12 13:33:52

Revision
  1.6

Definition in file XFuFileDef.h.

## Define Documentation

#define fclose | ( | f |  | ) | (f) ? f->close() : 0

| Turns fclose() call into XFcFile::close() call. Definition at line 32 of file XFuFileDef.h.

#define fgetc | ( | f |  | ) | (f) ? f->getChar() : 0

| Turns fgetc() call into XFcFile::getChar() call. Definition at line 24 of file XFuFileDef.h.

#define FILE XFcFile

| Turns FILE variable into a XFcFile call. Definition at line 34 of file XFuFileDef.h.

#define fopen | ( | a,
|  | b |  | ) | XFcFile::open((const CHAR *)(a), XFCSTR(b))

| Turns fopen() call into XFcFile::open() call. Definition at line 18 of file XFuFileDef.h.

#define fputc | ( | c,
|  | f |  | ) | (f) ? f->putChar(c) : 0

| Turns fputc() call into XFcFile::putChar() call. Definition at line 26 of file XFuFileDef.h.

#define fread | ( | bf,
|  | a,
|  | b,
|  | f |  | ) | (f) ? f->read(bf, a, b) : 0

| Turns fread() call into XFcFile::read() call. Definition at line 28 of file XFuFileDef.h.

#define fseek | ( | f,
|  | a,
|  | b |  | ) | (f) ? f->seek(a, b) : 0

| Turns fseek() call into XFcFile::seek() call. Definition at line 20 of file XFuFileDef.h.

#define ftell | ( | f |  | ) | (f) ? f->tell() : 0

| Turns ftell() call into XFcFile::tell() call. Definition at line 22 of file XFuFileDef.h.

#define fwrite | ( | bf,
|  | a,
|  | b,
|  | f |  | ) | (f) ? f->write(bf, a, b) : 0

| Turns fwrite() call into XFcFile::write() call. Definition at line 30 of file XFuFileDef.h.

|  | X-Forge Documentation Confidential Copyright © 2002-2003 Fathammer |  | Documentation generated with doxygen by Dimitri van Heesch