Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DataArchive Class Reference

#include <Archive.h>

List of all members.

Public Member Functions

 DataArchive (const char *name=0)
 ~DataArchive ()
void LoadDatafile (const char *name)
void Insert (const char *name)
void Extract (const char *name)
void Remove (const char *name)
void List ()
void WriteEntry (int index, BYTE *buf)
int FindEntry (const char *req_name)
int ExpandEntry (int index, BYTE *&buf, bool null_terminate=false)
BYTE * CompressEntry (int index)
int InsertEntry (const char *name)
void RemoveEntry (int index)
DWORD Blocks (DWORD raw_size)
DWORD DirBlocks ()
DWORD FileBlocks (int index)
int FindDataBlocks (int blocks_needed)
void CreateBlockMap ()
DWORD NumFiles ()
DataEntryGetFile (int i)
const char * Name () const

Static Public Member Functions

static const char * TYPENAME ()

Detailed Description

Definition at line 44 of file Archive.h.


Constructor & Destructor Documentation

DataArchive::DataArchive ( const char *  name = 0)

Definition at line 40 of file Archive.cpp.

DataArchive::~DataArchive ( )

Definition at line 48 of file Archive.cpp.


Member Function Documentation

DWORD DataArchive::Blocks ( DWORD  raw_size)

Definition at line 96 of file Archive.cpp.

BYTE * DataArchive::CompressEntry ( int  index)

Definition at line 283 of file Archive.cpp.

void DataArchive::CreateBlockMap ( )

Definition at line 121 of file Archive.cpp.

DWORD DataArchive::DirBlocks ( )

Definition at line 104 of file Archive.cpp.

int DataArchive::ExpandEntry ( int  index,
BYTE *&  buf,
bool  null_terminate = false 
)

Definition at line 330 of file Archive.cpp.

void DataArchive::Extract ( const char *  name)

Definition at line 515 of file Archive.cpp.

DWORD DataArchive::FileBlocks ( int  index)

Definition at line 111 of file Archive.cpp.

int DataArchive::FindDataBlocks ( int  blocks_needed)

Definition at line 166 of file Archive.cpp.

int DataArchive::FindEntry ( const char *  req_name)

Definition at line 255 of file Archive.cpp.

DataEntry* DataArchive::GetFile ( int  i)
inline

Definition at line 73 of file Archive.h.

void DataArchive::Insert ( const char *  name)

Definition at line 447 of file Archive.cpp.

int DataArchive::InsertEntry ( const char *  name)

Definition at line 384 of file Archive.cpp.

void DataArchive::List ( )

Definition at line 560 of file Archive.cpp.

void DataArchive::LoadDatafile ( const char *  name)

Definition at line 186 of file Archive.cpp.

const char* DataArchive::Name ( ) const
inline

Definition at line 75 of file Archive.h.

DWORD DataArchive::NumFiles ( )
inline

Definition at line 72 of file Archive.h.

void DataArchive::Remove ( const char *  name)

Definition at line 543 of file Archive.cpp.

void DataArchive::RemoveEntry ( int  index)

Definition at line 439 of file Archive.cpp.

static const char* DataArchive::TYPENAME ( )
inlinestatic

Definition at line 47 of file Archive.h.

void DataArchive::WriteEntry ( int  index,
BYTE *  buf 
)

Definition at line 56 of file Archive.cpp.


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