source: trunk/tools/common/kFileFormatBase.h

Last change on this file was 8003, checked in by bird, 24 years ago

New kFile* classes; now in sync with os2tools.

File size: 1.3 KB
RevLine 
[8003]1/* $Id: kFileFormatBase.h,v 1.7 2002-02-24 02:47:25 bird Exp $
[3246]2 *
[824]3 * kFileFormatBase - Base class for kFile<format> classes.
4 *
[3246]5 * Copyright (c) 1999-2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
[824]6 *
[3246]7 * Project Odin Software License can be found in LICENSE.TXT
8 *
[824]9 */
[3246]10
[824]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
[4358]25class kFile;
26
[4129]27
[824]28/**
29 * Base class for file formats.
30 * @author knut st. osmundsen
31 */
32class kFileFormatBase
33{
[3246]34public:
[8003]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);
[6066]39
[8003]40 kFileFormatBase(kFile *pFile) throw (kError);
41 virtual ~kFileFormatBase() throw (kError);
[6066]42
[8003]43protected:
44 kFile *pFile;
[824]45};
46
47#pragma pack()
48
49#endif
Note: See TracBrowser for help on using the repository browser.