~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to include/entriesblk.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Glassey
  • Date: 2004-01-15 15:50:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040115155007-n9mz4x0zxrs1isd3
Tags: upstream-1.5.7
ImportĀ upstreamĀ versionĀ 1.5.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ENTRIESBLK_H
 
2
#define ENTRIESBLK_H
 
3
 
 
4
#include <sysdata.h>
 
5
#include <defs.h>
 
6
 
 
7
SWORD_NAMESPACE_START
 
8
 
 
9
class EntriesBlock {
 
10
        static const int METAHEADERSIZE;
 
11
        static const int METAENTRYSIZE;
 
12
 
 
13
private:
 
14
        char *block;
 
15
        void setCount(int count);
 
16
        void getMetaEntry(int index, unsigned long *offset, unsigned long *size);
 
17
        void setMetaEntry(int index, unsigned long offset, unsigned long size);
 
18
 
 
19
public:
 
20
        EntriesBlock(const char *iBlock, unsigned long size);
 
21
        EntriesBlock();
 
22
        ~EntriesBlock();
 
23
 
 
24
        int getCount();
 
25
        int addEntry(const char *entry);
 
26
        const char *getEntry(int entryIndex);
 
27
        unsigned long getEntrySize(int entryIndex);
 
28
        void removeEntry(int entryIndex);
 
29
        const char *getRawData(unsigned long *size);
 
30
};
 
31
 
 
32
 
 
33
SWORD_NAMESPACE_END
 
34
#endif