Changeset 8003 for trunk/tools/common/kFileFormatBase.cpp
- Timestamp:
- Feb 24, 2002, 3:47:28 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/common/kFileFormatBase.cpp
r6066 r8003 1 /* $Id: kFileFormatBase.cpp,v 1. 5 2001-06-22 17:07:47bird Exp $1 /* $Id: kFileFormatBase.cpp,v 1.6 2002-02-24 02:47:25 bird Exp $ 2 2 * 3 3 * kFileFormatBase - Base class for kFile<format> classes. 4 4 * 5 * Copyright (c) 1999-200 0 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)5 * Copyright (c) 1999-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no) 6 6 * 7 7 * Project Odin Software License can be found in LICENSE.TXT … … 14 14 * Header Files * 15 15 *******************************************************************************/ 16 #include <os2.h> 16 #include "kTypes.h" 17 #include "kError.h" 18 #include "kFile.h" 19 #include "kFileInterfaces.h" 20 #include "kFileFormatBase.h" 17 21 18 #include <malloc.h>19 #include <string.h>20 #include <stdio.h>21 22 22 #include "kFile.h" 23 #include "kInterfaces.h" 24 #include "kFileFormatBase.h" 23 24 /** 25 * Constructor. 26 * Saves the file object pointer. 27 * @param pFile This will be deleted if the object is 28 * successfully constructed (by the destructor). 29 * @status completely implemented. 30 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 31 */ 32 kFileFormatBase::kFileFormatBase(kFile *pFile) 33 : pFile(pFile) 34 { 35 } 36 37 38 /** 39 * Destructor. 40 * Deletes the file object if it exists. 41 * @status completely implemented. 42 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 43 */ 44 kFileFormatBase::~kFileFormatBase() 45 { 46 if (pFile) 47 delete pFile; 48 pFile = NULL; 49 } 25 50 26 51 … … 30 55 * @param pOut Output file. 31 56 */ 32 BOOL kFileFormatBase::dump(kFile *pOut)57 KBOOL kFileFormatBase::dump(kFile *pOut) 33 58 { 34 59 pOut->printf("Sorry, dump() is not implemented for this file format.\n"); … … 36 61 } 37 62 38 39 kFileFormatBase::~kFileFormatBase()40 {41 42 }43
Note:
See TracChangeset
for help on using the changeset viewer.