00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
#ifndef DIME_BLOCKSSECTION_H
00031
#define DIME_BLOCKSSECTION_H
00032
00033
#include <dime/sections/Section.h>
00034
#include <dime/util/Array.h>
00035
00036 class DIME_DLL_API dimeBlocksSection :
public dimeSection
00037 {
00038
public:
00039 dimeBlocksSection(
dimeMemHandler *
const memhandler = NULL);
00040
virtual ~dimeBlocksSection();
00041
00042
virtual const char *getSectionName()
const;
00043
virtual dimeSection *copy(
dimeModel *
const model)
const;
00044
00045
public:
00046
virtual bool read(
dimeInput *
const file);
00047
virtual bool write(
dimeOutput *
const file);
00048
virtual int typeId()
const;
00049
virtual int countRecords()
const;
00050
00051
void fixReferences(
dimeModel *
const model);
00052
00053
int getNumBlocks()
const;
00054
class dimeBlock *getBlock(
const int idx);
00055
void removeBlock(
const int idx);
00056
void insertBlock(
dimeBlock *
const block,
const int idx = -1);
00057
00058
private:
00059 dimeArray <dimeBlock*> blocks;
00060
00061 };
00062
00063
#endif // ! DIME_BLOCKSSECTION_H
00064