_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <iolib.h>
Defines a library file
- Todo:
- zip archive support
◆ CFile()
◆ ~CFile()
◆ as_SDL_RWops()
SDL_RWops * CFile::as_SDL_RWops |
( |
| ) |
|
◆ close()
CLclose Library file close
◆ flush()
◆ open()
int CFile::open |
( |
const char * |
name, |
|
|
long |
flags |
|
) |
| |
CLopen Library file open
- Parameters
-
name | File name. |
openflags | Open read, or write and compression options |
- Returns
- File Pointer
◆ printf()
int CFile::printf |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
CLprintf Library file write
- Parameters
-
format | String Format. |
... | Parameter List. |
◆ read()
int CFile::read |
( |
void * |
buf, |
|
|
size_t |
len |
|
) |
| |
CLread Library file read
- Parameters
-
buf | Pointer to read the data to. |
len | number of bytes to read. |
◆ seek()
int CFile::seek |
( |
long |
offset, |
|
|
int |
whence |
|
) |
| |
CLseek Library file seek
- Parameters
-
offset | Seek position |
whence | How to seek |
◆ tell()
The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The