ponyprog/intfbuf.h
Claudio Lanconelli 5305b1ae46 Initial revision
2000-02-05 22:37:44 +00:00

61 lines
3.0 KiB
C++

//=========================================================================//
//-------------------------------------------------------------------------//
// intfbuf.h -- Header for IntelFileBuf class //
// This file is part of PonyProg. //
//-------------------------------------------------------------------------//
// //
// PonyProg - Serial Device Programmer //
// //
// Copyright (C) 1997, 1998 Claudio Lanconelli //
// //
// e-mail: lanconel@cs.unibo.it //
// http://www.cs.unibo.it/~lanconel //
// //
//-------------------------------------------------------------------------//
// //
// This program is free software; you can redistribute it and/or //
// modify it under the terms of the GNU General Public License //
// as published by the Free Software Foundation; either version2 of //
// the License, or (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
// General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program (see COPYING); if not, write to the //
// Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. //
// //
//-------------------------------------------------------------------------//
//=========================================================================//
#ifndef _INTELFBUF_H
#define _INTELFBUF_H
// Include standard V files as needed
#include "types.h"
#include "filebuf.h"
class IntelFileBuf : public FileBuf
{
public: //---------------------------------------- public
IntelFileBuf(e2AppWinInfo *wininfo = 0);
virtual ~IntelFileBuf();
virtual int Load(int bank = 0);
virtual int Save();
protected: //--------------------------------------- protected
private: //--------------------------------------- private
int WriteRecord(FILE *fh, long curaddr, long recsize, int fmt);
int WriteAddressRecord(FILE *fh, long curaddr);
DWORD ScanHex(char **sp, int len);
};
#endif