| AVR Z-LINKŪ | |||||
#include <hexfile.h>
Definition at line 95 of file hexfile.h.
Public Member Functions | |
| void | Add (const HEXRecord &record, size_t copies) |
| void | Add (const HEXRecord &record) |
| HEXFile () | |
| void | Print (std::ostream &os) const |
| ~HEXFile () | |
Private Attributes | |
| unsigned long | m_nextAddress |
| std::vector< HEXRecord > | m_records |
| HEXFile::HEXFile | ( | ) | [inline] |
| void HEXFile::Add | ( | const HEXRecord & | record, | |
| size_t | copies | |||
| ) | [inline] |
| void HEXFile::Add | ( | const HEXRecord & | record | ) | [inline] |
Add one record to the end of the file.
Definition at line 107 of file hexfile.h.
References HEXRecord::GetByteCount(), m_nextAddress, and m_records.
Referenced by Add(), and operator<<().
00107 { 00108 m_records.push_back( record ); 00109 m_records.back().SetAddress( m_nextAddress ); 00110 m_nextAddress += record.GetByteCount(); 00111 }
Here is the call graph for this function:

| void HEXFile::Print | ( | std::ostream & | os | ) | const |
Print whole file to an output stream.
Definition at line 139 of file hexfile.cpp.
References m_records.
Referenced by operator<<().
00140 { 00141 for( size_t idx = 0; idx < m_records.size(); ++idx ) { 00142 os << m_records.at( idx ); 00143 } 00144 os << ":00000001ff" << std::endl; 00145 }
unsigned long HEXFile::m_nextAddress [private] |
std::vector< HEXRecord > HEXFile::m_records [private] |
Generated on Sun Oct 29 18:12:00 2006 for AVR414 User's Guide - ATAVRRZ502 - Accessory Kit (PC Tools - HEXMaker) by 1.4.7
|