#include <dime/sections/BlocksSection.h>
Inheritance diagram for dimeBlocksSection::
Public Methods | |
dimeBlocksSection (dimeMemHandler *const memhandler=NULL) | |
virtual | ~dimeBlocksSection () |
virtual const char * | getSectionName () const |
virtual dimeSection * | copy (dimeModel *const model) const |
virtual bool | read (dimeInput *const file) |
virtual bool | write (dimeOutput *const file) |
virtual int | typeId () const |
virtual int | countRecords () const |
void | fixReferences (dimeModel *const model) |
int | getNumBlocks () const |
dimeBlock * | getBlock (const int idx) |
void | removeBlock (const int idx) |
void | insertBlock (dimeBlock *const block, const int idx=-1) |
|
Constructor which stores the sectioname. |
|
Destructor. Should only be called when no memhandler is used. |
|
Returns the number of records in this section. Reimplemented from dimeSection. |
|
This function should be called after loading has ended, and will find all forward BLOCK references. |
|
Returns the block at index idx. |
|
Returns the number of blocks in this section. |
|
Inserts a new block at index idx. If idx is negative, the block will be inserted at the end of the list of blocks. |
|
This method reads a DXF BLOCKS section. Reimplemented from dimeSection. |
|
Removes (and deletes if no memhandler is used) the block at index idx. |
|
Must be implemented by all subclasses, and should return an unique id for that class. Reimplemented from dimeSection. |
|
This method writes a DXF BLOCKS section. Reimplemented from dimeSection. |