ScEng::SceneSave Class Reference

Saves the SC files. More...

#include <fileio.h>

List of all members.

Public Types

enum  SAVESTATE { SAVE_FAILED = 0, SAVE_OK = 1, SAVE_NO = 2 }

Public Member Functions

 SceneSave (const char *filename)
 ~SceneSave ()
 Destructor.
void BeginChunk (unsigned chunk_id)
void EndChunk ()
bool Write (const void *buf, unsigned short num_bytes, unsigned short &num_write_bytes)
void WriteString (std::string &the_string)


Detailed Description

Saves the SC files.

Please add comments here


Member Enumeration Documentation

enum ScEng::SceneSave::SAVESTATE

Enum SaveState Enums the possibles states for the Save operation

Enumerator:
SAVE_FAILED  There was an error loading and SceneEngine should be aborted!
SAVE_OK  Load OK
SAVE_NO  No more chunks to load in this level


Constructor & Destructor Documentation

ScEng::SceneSave::SceneSave ( const char *  filename  ) 

Contructor Initializes the stream, opening a file with the given nam. Also allocates memory for the list_chunks_position.

Parameters:
filename the name for the file


Member Function Documentation

void ScEng::SceneSave::BeginChunk ( unsigned  chunk_id  ) 

Begins a chunk

Parameters:
chunk_id the ID for the chunk to be writed

void ScEng::SceneSave::EndChunk (  ) 

Ends a chunk Please add comments here

bool ScEng::SceneSave::Write ( const void *  buf,
unsigned short  num_bytes,
unsigned short &  num_write_bytes 
)

Writes the data into the file

Parameters:
buf the buffer with the data to be writed
num_bytes the number of bytes of the data
num_write_bytes Please add commments here

void ScEng::SceneSave::WriteString ( std::string &  the_string  ) 

Writes a string into the file

Parameters:
the_string the string to be writed


The documentation for this class was generated from the following files:
Generated on Thu Sep 6 10:49:22 2007 for SceneEngine by  doxygen 1.5.1-p1