Class hierarchy   Compound list   Header files   Member list  

dimeBlocksSection Class Reference

The dimeBlocksSection class handles a BLOCKS section. More...

#include <BlocksSection.h>

Inherits dimeSection.

List of all members.

Public Members


Detailed Description

The dimeBlocksSection class handles a BLOCKS section.


Member Function Documentation

dimeBlocksSection::dimeBlocksSection(dimeMemHandler * const memhandler)

Constructor which stores the sectioname.

dimeBlocksSection::~dimeBlocksSection() [virtual]

Destructor. Should only be called when no memhandler is used.

const char* dimeBlocksSection::getSectionName() const [virtual]

Reimplemented from dimeSection.

dimeSection* dimeBlocksSection::copy(dimeModel * const model) const [virtual]

Reimplemented from dimeSection.

bool dimeBlocksSection::read(dimeInput * const file) [virtual]

This method reads a DXF BLOCKS section.

Reimplemented from dimeSection.

bool dimeBlocksSection::write(dimeOutput * const file) [virtual]

This method writes a DXF BLOCKS section.

Reimplemented from dimeSection.

int dimeBlocksSection::typeId() const [virtual]

Reimplemented from dimeSection.

int dimeBlocksSection::countRecords() const [virtual]

Reimplemented from dimeSection.

void dimeBlocksSection::fixReferences(dimeModel * const model)

This function should be called after loading has ended, and will find all forward BLOCK references.

int dimeBlocksSection::getNumBlocks() const

Returns the number of blocks in this section.

dimeBlock* dimeBlocksSection::getBlock(const int idx)

Returns the block at index idx.

void dimeBlocksSection::removeBlock(const int idx)

Removes (and deletes if no memhandler is used) the block at index idx.

void dimeBlocksSection::insertBlock(dimeBlock * const block, const int idx)

Inserts a new block at index idx. If idx is negative, the block will be inserted at the end of the list of blocks.


The documentation for this class was generated from the following files:
Copyright © 1998-1999, Systems In Motion <sales@sim.no>. All rights reserved.
System documentation was generated using doxygen.