Flex Class Reference

#include <Flex.h>

Inheritance diagram for Flex:

Inheritance graph
[legend]
Collaboration diagram for Flex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Flex (const std::string &fname)
 Flex (const Flex &f)
Flexoperator= (const Flex &f)
virtual uint32 number_of_objects (void)
virtual char * retrieve (uint32 objnum, std::size_t &len)
virtual const char * get_archive_type ()

Static Public Member Functions

static void write_header (DataSource *out, const char *title, int count)
static bool is_flex (DataSource *in)
static bool is_flex (const char *fname)

Protected Attributes

char title [80]
uint32 magic1
uint32 count
uint32 magic2
uint32 padding [9]
std::vector< Referenceobject_list

Private Member Functions

 Flex ()
void IndexFlexFile (void)

Classes

struct  Reference

Detailed Description

Definition at line 33 of file Flex.h.


Constructor & Destructor Documentation

Flex::Flex ( const std::string &  fname  ) 

Flex::Flex ( const Flex f  )  [inline]

Definition at line 51 of file Flex.h.

References padding, and title.

Flex::Flex (  )  [private]


Member Function Documentation

Flex& Flex::operator= ( const Flex f  )  [inline]

Definition at line 54 of file Flex.h.

References count, magic1, magic2, object_list, padding, and title.

virtual uint32 Flex::number_of_objects ( void   )  [inline, virtual]

Implements U7file.

Definition at line 65 of file Flex.h.

References object_list.

Referenced by Audio::play_wave_sfx(), Read_flex(), ExultStudio::set_game_path(), Shape_group_file::Shape_group_file(), and Update().

virtual char* Flex::retrieve ( uint32  objnum,
std::size_t &  len 
) [virtual]

Implements U7file.

Referenced by Audio::play_wave_sfx(), Read_flex(), ExultStudio::set_game_path(), Shape_group_file::Shape_group_file(), and Update().

virtual const char* Flex::get_archive_type (  )  [inline, virtual]

Implements U7file.

Definition at line 67 of file Flex.h.

void Flex::write_header ( DataSource out,
const char *  title,
int  count 
) [static]

Definition at line 114 of file Flex.cc.

References DataSource::getPos(), DataSource::write(), DataSource::write1(), and DataSource::write4().

Referenced by Flex_writer::Flex_writer(), and Game_map::write_ifix_objects().

Here is the call graph for this function:

bool Flex::is_flex ( DataSource in  )  [static]

Definition at line 137 of file Flex.cc.

References DataSource::getPos(), DataSource::getSize(), Exult_server::magic, DataSource::read4(), and DataSource::seek().

Referenced by Game_window::get_saveinfo(), is_flex(), and Vga_file::load().

Here is the call graph for this function:

bool Flex::is_flex ( const char *  fname  )  [static]

Definition at line 156 of file Flex.cc.

References is_flex(), and U7open().

Here is the call graph for this function:

void Flex::IndexFlexFile ( void   )  [private]

Definition at line 55 of file Flex.cc.

References count, U7file::filename, magic1, magic2, object_list, padding, title, and U7open().

Here is the call graph for this function:


Member Data Documentation

char Flex::title[80] [protected]

Definition at line 36 of file Flex.h.

Referenced by Flex(), IndexFlexFile(), and operator=().

uint32 Flex::magic1 [protected]

Definition at line 37 of file Flex.h.

Referenced by IndexFlexFile(), and operator=().

uint32 Flex::count [protected]

Definition at line 38 of file Flex.h.

Referenced by IndexFlexFile(), and operator=().

uint32 Flex::magic2 [protected]

Definition at line 39 of file Flex.h.

Referenced by IndexFlexFile(), and operator=().

uint32 Flex::padding[9] [protected]

Definition at line 40 of file Flex.h.

Referenced by Flex(), IndexFlexFile(), and operator=().

std::vector<Reference> Flex::object_list [protected]

Definition at line 47 of file Flex.h.

Referenced by IndexFlexFile(), number_of_objects(), and operator=().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:51:37 2007 for ExultEngine by  doxygen 1.5.1