SDLPP::ResourceFileWriter Class Reference

#include <sdlpp_io.h>

List of all members.

Public Member Functions

 ResourceFileWriter (const char *filename, bool append=true)
void add_resource (const char *filename)
void add_resource (const char *name, const char *buffer, int length)

Detailed Description

This class is used to create a resource file. It is usually used outside the main application by a utility that gathers various data files and creates a single aggregate.

The utility rscfile uses this class.

Constructor & Destructor Documentation

SDLPP::ResourceFileWriter::ResourceFileWriter ( const char *  filename,
bool  append = true 

Open a resource file for writing. If append is true, new resources will be added while maintaining the existing ones. Otherwise, existing resources will be removed.

Member Function Documentation

void SDLPP::ResourceFileWriter::add_resource ( const char *  name,
const char *  buffer,
int  length 

Add a resource from a memory buffer.

void SDLPP::ResourceFileWriter::add_resource ( const char *  filename  ) 

Add a resource by copying the contents of a file.

The documentation for this class was generated from the following files:
Generated on Wed May 26 17:41:01 2010 for SDLPP by  doxygen 1.6.3