Kinetis Bootloader Host  2.0.0
Host Tools for Kinetis devices
BootImage.h
1 /*
2  * File: BootImage.h
3  *
4  * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
5  * See included license file for license details.
6  */
7 #if !defined(_BootImage_h_)
8 #define _BootImage_h_
9 
10 #include <iostream>
11 #include "Version.h"
12 
13 namespace elftosb
14 {
25 class BootImage
26 {
27 public:
29  BootImage() {}
31  virtual ~BootImage() {}
33 
34  virtual void setProductVersion(const version_t &version) = 0;
35  virtual void setComponentVersion(const version_t &version) = 0;
37 
39  virtual void setDriveTag(uint16_t tag) = 0;
40 
42  virtual std::string getFileExtension() const = 0;
43 
45  virtual void writeToStream(std::ostream &stream) = 0;
46 };
47 
48 }; // namespace elftosb
49 
50 #endif // _BootImage_h_
virtual ~BootImage()
Destructor.
Definition: BootImage.h:31
virtual std::string getFileExtension() const =0
Returns a string containing the preferred file extension for image format.
virtual void writeToStream(std::ostream &stream)=0
Write the boot image to an output stream.
Definition: BootImage.h:13
BootImage()
Constructor.
Definition: BootImage.h:29
Abstract base class for all boot image format classes.
Definition: BootImage.h:25
Same version struct used for 3600 boot image.
Definition: Version.h:16
virtual void setDriveTag(uint16_t tag)=0
Specify the drive tag to be set in the output file header.