#include <HexFile.h>
Classes | |
struct | EarlyEOF |
struct | Error |
struct | FileOpeningError |
struct | InvalidRecord |
struct | UnknownRecordType |
struct | WrongCheckSum |
Public Types | |
typedef std::map< uint32, std::vector< uint8 > > | ChunkMap |
Public Member Functions | |
void | read (const std::string &fileName) |
void | strip (unsigned pageSize) |
void | write (const std::string &fileName) const |
Public Attributes | |
ChunkMap | data |
Protected Member Functions | |
unsigned | getUint16 (std::istream &stream) |
unsigned | getUint4 (std::istream &stream) |
unsigned | getUint8 (std::istream &stream) |
void | writeData (std::ofstream &stream, unsigned addr16, unsigned count8, uint8 *data) const |
void | writeExtendedLinearAddressRecord (std::ofstream &stream, unsigned addr16) const |
typedef std::map<uint32, std::vector<uint8> > Aseba::HexFile::ChunkMap |
unsigned Aseba::HexFile::getUint16 | ( | std::istream & | stream | ) | [protected] |
Definition at line 74 of file HexFile.cpp.
unsigned Aseba::HexFile::getUint4 | ( | std::istream & | stream | ) | [protected] |
Definition at line 58 of file HexFile.cpp.
unsigned Aseba::HexFile::getUint8 | ( | std::istream & | stream | ) | [protected] |
Definition at line 69 of file HexFile.cpp.
void Aseba::HexFile::read | ( | const std::string & | fileName | ) |
Definition at line 79 of file HexFile.cpp.
void Aseba::HexFile::strip | ( | unsigned | pageSize | ) |
Definition at line 299 of file HexFile.cpp.
void Aseba::HexFile::write | ( | const std::string & | fileName | ) | const |
Definition at line 356 of file HexFile.cpp.
void Aseba::HexFile::writeData | ( | std::ofstream & | stream, |
unsigned | addr16, | ||
unsigned | count8, | ||
uint8 * | data | ||
) | const [protected] |
Definition at line 261 of file HexFile.cpp.
void Aseba::HexFile::writeExtendedLinearAddressRecord | ( | std::ofstream & | stream, |
unsigned | addr16 | ||
) | const [protected] |
Definition at line 234 of file HexFile.cpp.