#include <FlexWriter.h>
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< FlexObject > | objects |
Classes | |
struct | FlexObject |
Definition at line 28 of file FlexWriter.h.
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] |
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().
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().
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().
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().