Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions
Aseba::HexFile Class Reference

#include <HexFile.h>

List of all members.

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

Detailed Description

Definition at line 32 of file HexFile.h.


Member Typedef Documentation

typedef std::map<uint32, std::vector<uint8> > Aseba::HexFile::ChunkMap

Definition at line 89 of file HexFile.h.


Member Function Documentation

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.


Member Data Documentation

Definition at line 90 of file HexFile.h.


The documentation for this class was generated from the following files:


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:17