$treeview $search $mathjax
Stratagus  2.2.7
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

CFile Class Reference

#include <iolib.h>

List of all members.


Public Member Functions

iolib.cpp - Compression-IO helper functions.
 CFile ()
 ~CFile ()
int open (const char *name, long flags)
int close ()
void flush ()
int read (void *buf, size_t len)
int seek (long offset, int whence)
long tell ()
int printf (const char *format,...) PRINTF_VAARG_ATTRIBUTE(2

Classes

class  PImpl

Detailed Description

Defines a library file

Todo:
zip archive support

Constructor & Destructor Documentation

CFile::CFile (  ) 

CFile::~CFile (  ) 


Member Function Documentation

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

int CFile::close (  ) 

CLclose Library file close

void CFile::flush (  ) 

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.

int CFile::seek ( long  offset,
int  whence 
)

CLseek Library file seek

Parameters:
offset Seek position
whence How to seek

long CFile::tell (  ) 

CLtell Library file tell

int CFile::printf ( const char *  format,
  ... 
)

CLprintf Library file write

Parameters:
format String Format.
... Parameter List.


The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.