BootImage.h
/*
* File: BootImage.h
*
* Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
* See included license file for license details.
*/
#if !defined(_BootImage_h_)
#define _BootImage_h_
#include <iostream>
#include "Version.h"
namespace elftosb
{
class BootImage
{
public:
BootImage() {}
virtual ~BootImage() {}
virtual void setProductVersion(const version_t &version) = 0;
virtual void setComponentVersion(const version_t &version) = 0;
virtual void setDriveTag(uint16_t tag) = 0;
virtual std::string getFileExtension() const = 0;
virtual void writeToStream(std::ostream &stream) = 0;
};
}; // namespace elftosb
#endif // _BootImage_h_
elftosb::BootImage::~BootImage
virtual ~BootImage()
Destructor.
Definition: BootImage.h:31
elftosb::BootImage::getFileExtension
virtual std::string getFileExtension() const =0
Returns a string containing the preferred file extension for image format.
elftosb::BootImage::writeToStream
virtual void writeToStream(std::ostream &stream)=0
Write the boot image to an output stream.
elftosb
Definition: BootImage.h:13
elftosb::BootImage::BootImage
BootImage()
Constructor.
Definition: BootImage.h:29
elftosb::BootImage
Abstract base class for all boot image format classes.
Definition: BootImage.h:25
elftosb::version_t
Same version struct used for 3600 boot image.
Definition: Version.h:16
elftosb::BootImage::setDriveTag
virtual void setDriveTag(uint16_t tag)=0
Specify the drive tag to be set in the output file header.