Remote Access Control


hexfile.h File Reference


Detailed Description

Header file for a simple Intel HEX file writer.

Author:
Atmel Corporation: http://www.atmel.com
Support email: avr@atmel.com
$Name$
Revision
792
Date
2006-10-09 10:36:07 +0200 (ma, 09 okt 2006)

Copyright (c) 2006, Atmel Corporation All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. The name of ATMEL may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file hexfile.h.

#include <vector>
#include <iostream>

Include dependency graph for hexfile.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  HEXFile
 This class contains all records of a HEX file. More...
class  HEXRecord
 This class contains one HEX file record, i.e. one text line of the file. More...

Typedefs

typedef unsigned short byte

Functions

std::ostream & operator<< (std::ostream &os, const HEXFile &file)
HEXFileoperator<< (HEXFile &file, const HEXRecord &record)
std::ostream & operator<< (std::ostream &os, const HEXRecord &record)
HEXRecordoperator<< (HEXRecord &record, std::vector< byte > data)
HEXRecordoperator<< (HEXRecord &record, byte data)


Typedef Documentation

typedef unsigned short byte

Used to represent one data byte for the HEX file record.

Definition at line 54 of file hexfile.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const HEXFile file 
)

Overloaded insertion operator to print a HEX file to an output stream.

Definition at line 158 of file hexfile.cpp.

References HEXFile::Print().

00159 {
00160         file.Print( os );
00161         return os;
00162 }

Here is the call graph for this function:

HEXFile& operator<< ( HEXFile file,
const HEXRecord record 
)

Overloaded insertion operator to add one record to a HEX file.

Definition at line 150 of file hexfile.cpp.

References HEXFile::Add().

00151 {
00152         file.Add( record );
00153         return file;
00154 }

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const HEXRecord record 
)

Overloaded insertion operator to print a record to an output stream.

Definition at line 132 of file hexfile.cpp.

References HEXRecord::Print().

00133 {
00134         record.Print( os );
00135         return os;
00136 }

Here is the call graph for this function:

HEXRecord& operator<< ( HEXRecord record,
std::vector< byte data 
)

Overloaded insertion operator to add a set of data bytes to a record.

Definition at line 124 of file hexfile.cpp.

References HEXRecord::Add().

00125 {
00126         record.Add( data );
00127         return record;
00128 }

Here is the call graph for this function:

HEXRecord& operator<< ( HEXRecord record,
byte  data 
)

Overloaded insertion operator to add one data byte to a record.

Definition at line 116 of file hexfile.cpp.

References HEXRecord::Add().

00117 {
00118         record.Add( data );
00119         return record;
00120 }

Here is the call graph for this function:

@DOC_TITLE@
Generated on Fri Aug 8 11:02:27 2008 for AVR411 Secure Rolling Code Algorithm (PC Tools - createrxhex) by doxygen 1.4.7