____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

FileWriter Class Reference

#include <iolib.h>

Inheritance diagram for FileWriter:

GzFileWriter RawFileWriter

List of all members.

Public Member Functions

virtual ~FileWriter ()
void printf (const char *format,...)
virtual int write (const char *data, unsigned int size)=0


Detailed Description

Abstract class representing files one can write to.

Definition at line 57 of file iolib.h.


Constructor & Destructor Documentation

virtual FileWriter::~FileWriter (  )  [inline, virtual]

Definition at line 60 of file iolib.h.


Member Function Documentation

void FileWriter::printf ( const char *  format,
  ... 
)

Definition at line 510 of file iolib.cpp.

References ExitFatal(), and write().

Referenced by WriteMapPresentation(), and WriteMapSetup().

virtual int FileWriter::write ( const char *  data,
unsigned int  size 
) [pure virtual]

Implemented in RawFileWriter, and GzFileWriter.

Referenced by printf().


The documentation for this class was generated from the following files:

Generated on Sat Feb 21 00:28:25 2009 for Bos Wars by  doxygen 1.5.6