FlexWriter Class Reference

#include <FlexWriter.h>

List of all members.

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 FlexWriter (FlexFile *f=0)
virtual ~FlexWriter ()
virtual void add_object (const uint8 *obj, uint32 size)
virtual void add_datasource (IDataSource *ds)
virtual void set_object (uint32 index, const uint8 *obj, uint32 size)
virtual void set_datasource (uint32 index, IDataSource *ds)
virtual void write (ODataSource *ds)

Protected Member Functions

virtual void writeHead (ODataSource *ds)

Protected Attributes

std::vector< FlexObjectobjects

Classes

struct  FlexObject


Detailed Description

Definition at line 28 of file FlexWriter.h.


Constructor & Destructor Documentation

FlexWriter::FlexWriter ( FlexFile f = 0  )  [explicit]

Definition at line 28 of file FlexWriter.cpp.

References FlexFile::getIndexCount(), FlexFile::getObject(), FlexWriter::FlexObject::obj, objects, and FlexWriter::FlexObject::size.

FlexWriter::~FlexWriter (  )  [virtual]

Definition at line 48 of file FlexWriter.cpp.

References objects.


Member Function Documentation

void FlexWriter::add_datasource ( IDataSource ds  )  [virtual]

Definition at line 67 of file FlexWriter.cpp.

References IDataSource::getSize(), FlexWriter::FlexObject::obj, objects, IDataSource::read(), IDataSource::seek(), and FlexWriter::FlexObject::size.

Referenced by main(), and set_datasource().

void FlexWriter::add_object ( const uint8 obj,
uint32  size 
) [virtual]

Definition at line 58 of file FlexWriter.cpp.

References FlexWriter::FlexObject::obj, objects, and FlexWriter::FlexObject::size.

Referenced by set_object().

FlexWriter::ENABLE_RUNTIME_CLASSTYPE (  ) 

void FlexWriter::set_datasource ( uint32  index,
IDataSource ds 
) [virtual]

Definition at line 92 of file FlexWriter.cpp.

References add_datasource(), IDataSource::getSize(), FlexWriter::FlexObject::obj, objects, IDataSource::read(), IDataSource::seek(), and FlexWriter::FlexObject::size.

Referenced by main().

void FlexWriter::set_object ( uint32  index,
const uint8 obj,
uint32  size 
) [virtual]

Definition at line 78 of file FlexWriter.cpp.

References add_object(), FlexWriter::FlexObject::obj, objects, and FlexWriter::FlexObject::size.

void FlexWriter::write ( ODataSource ds  )  [virtual]

Definition at line 108 of file FlexWriter.cpp.

References objects, ODataSource::write(), and writeHead().

Referenced by main().

void FlexWriter::writeHead ( ODataSource ds  )  [protected, virtual]

Definition at line 119 of file FlexWriter.cpp.

References ODataSource::getPos(), objects, ODataSource::seek(), and ODataSource::write4().

Referenced by write().


Member Data Documentation

std::vector<FlexObject> FlexWriter::objects [protected]

Definition at line 49 of file FlexWriter.h.

Referenced by add_datasource(), add_object(), FlexWriter(), set_datasource(), set_object(), write(), writeHead(), and ~FlexWriter().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:11 2007 for pentagram by  doxygen 1.4.7