Last change
on this file since 8706 was 8003, checked in by bird, 24 years ago |
New kFile* classes; now in sync with os2tools.
|
File size:
1.3 KB
|
Line | |
---|
1 | /* $Id: kFileFormatBase.h,v 1.7 2002-02-24 02:47:25 bird Exp $
|
---|
2 | *
|
---|
3 | * kFileFormatBase - Base class for kFile<format> classes.
|
---|
4 | *
|
---|
5 | * Copyright (c) 1999-2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
|
---|
6 | *
|
---|
7 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
8 | *
|
---|
9 | */
|
---|
10 |
|
---|
11 | #ifndef _kFileFormat_h_
|
---|
12 | #define _kFileFormat_h_
|
---|
13 |
|
---|
14 | /******************************************************************************
|
---|
15 | * Defined Constants *
|
---|
16 | ******************************************************************************/
|
---|
17 | #define ORD_START_INTERNAL_FUNCTIONS 1200
|
---|
18 |
|
---|
19 |
|
---|
20 | /******************************************************************************
|
---|
21 | * Structures and Typedefs *
|
---|
22 | ******************************************************************************/
|
---|
23 | #pragma pack(4)
|
---|
24 |
|
---|
25 | class kFile;
|
---|
26 |
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * Base class for file formats.
|
---|
30 | * @author knut st. osmundsen
|
---|
31 | */
|
---|
32 | class kFileFormatBase
|
---|
33 | {
|
---|
34 | public:
|
---|
35 | virtual KBOOL isDef() const { return FALSE;}
|
---|
36 | virtual KBOOL isPe() const { return FALSE;}
|
---|
37 | virtual KBOOL isLx() const { return FALSE;}
|
---|
38 | virtual KBOOL dump(kFile *pOut);
|
---|
39 |
|
---|
40 | kFileFormatBase(kFile *pFile) throw (kError);
|
---|
41 | virtual ~kFileFormatBase() throw (kError);
|
---|
42 |
|
---|
43 | protected:
|
---|
44 | kFile *pFile;
|
---|
45 | };
|
---|
46 |
|
---|
47 | #pragma pack()
|
---|
48 |
|
---|
49 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.