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_TABLESSECTION_H
00031
#define DIME_TABLESSECTION_H
00032
00033
#include <dime/sections/Section.h>
00034
#include <dime/util/Array.h>
00035
00036 class DIME_DLL_API dimeTablesSection :
public dimeSection
00037 {
00038
public:
00039 dimeTablesSection(
dimeMemHandler *
const memhandler = NULL);
00040
virtual ~dimeTablesSection();
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
int getNumTables()
const;
00052
class dimeTable *getTable(
const int idx);
00053
void removeTable(
const int idx);
00054
void insertTable(
dimeTable *
const table,
const int idx = -1);
00055
00056
private:
00057 dimeArray <dimeTable*> tables;
00058
00059 };
00060
00061
#endif // ! DIME_TABLESSECTION_H
00062