Debian Codegraph @

cmotfile.h

raw symbols SCIP
1 /***************************************************************************
2 cmotfile.h - header file for cmotfile.cxx.
3 -------------------
4 begin : Wed Sep 25 18:58:35 BST 2002
5 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge
6 email : [email protected]
7 ***************************************************************************/
8
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <assert.h>
20
21 #include "cpage.h"
22
23 class CMOTFile {
24
25 public:
26 CMOTFile();
27 ~CMOTFile();
28
29 int readFile(const char* pszFilename, int nPageSize);
30
31 inline CPage* getFirstPage();
32
33 protected:
34
35 int processFile(int nPageSize);
36 CPage* getPageToAddress(int nPageSize, long lAddress);
37
38 FILE* m_fp;
39 CPage* m_pHead;
40 CPage* m_pTail;
41
42 };
43
44 inline CPage* CMOTFile::getFirstPage()
45 {
46 return m_pHead;
47 }
48