![]() |
Kinetis Bootloader Host
2.0.0
Host Tools for Kinetis devices
|
Binary data file. More...
#include <SourceFile.h>
Inheritance diagram for blfwk::BinarySourceFile:
Collaboration diagram for blfwk::BinarySourceFile:Public Member Functions | |
| BinarySourceFile (const std::string &path, source_file_t sourceFileType=kBinarySourceFile) | |
| Default constructor. | |
Format capabilities | |
| virtual bool | supportsNamedSections () const |
| virtual bool | supportsNamedSymbols () const |
Data source creation | |
| virtual DataSource * | createDataSource () |
| Creates an unmapped data source from the entire file. | |
Entry point | |
| void | guessEntryPointAndStackPointer () |
| Initialize entry point and stack pointer from assumed vetcor table at the beginning of the file. | |
| virtual bool | hasEntryPoint () |
| Returns true if an entry point was set in the file. | |
| virtual uint32_t | getEntryPointAddress () |
| Returns the entry point address. | |
| uint32_t | getStackPointer () |
| Returns the stack pointer. | |
Public Member Functions inherited from blfwk::SourceFile | |
| SourceFile (const std::string &path, source_file_t filetype) | |
| Default constructor. | |
| virtual | ~SourceFile () |
| Destructor. More... | |
| void | setOptions (OptionContext *context) |
| Set the option context. More... | |
| const OptionContext * | getOptions () const |
| Return the option context. | |
| source_file_t | getFileType () const |
| Return the file type. | |
| const std::string & | getPath () const |
| Returns the path to the file. | |
| unsigned | getSize () const |
| Get the size in bytes of the file. | |
| virtual void | open () |
| Opens the file. More... | |
| virtual void | close () |
| Closes the file. | |
| virtual bool | isOpen () const |
| Returns whether the file is already open. | |
| virtual DataSource * | createDataSource (StringMatcher &matcher) |
| Creates a data source out of one or more sections of the file. More... | |
| virtual DataSource * | createDataSource (const std::string §ion) |
| Creates a data source out of one section of the file. More... | |
| virtual DataTarget * | createDataTargetForSection (const std::string §ion) |
| virtual DataTarget * | createDataTargetForSymbol (const std::string &symbol) |
| virtual DataTarget * | createDataTargetForEntryPoint () |
| virtual bool | hasSymbol (const std::string &name) |
| Returns whether a symbol exists in the source file. | |
| virtual uint32_t | getSymbolValue (const std::string &name) |
| Returns the value of a symbol. | |
| virtual unsigned | getSymbolSize (const std::string &name) |
| Returns the size of a symbol. | |
Protected Attributes | |
| uint32_t | m_entry_point |
| uint32_t | m_stack_pointer |
Protected Attributes inherited from blfwk::SourceFile | |
| std::string | m_path |
| Path to the file. | |
| smart_ptr< std::ifstream > | m_stream |
| File stream, or NULL if file is closed. | |
| smart_ptr< OptionContext > | m_options |
| Table of option values. | |
| source_file_t | m_filetype |
| Image file type. | |
| unsigned | m_size |
| The size in bytes of the file. | |
Additional Inherited Members | |
Public Types inherited from blfwk::SourceFile | |
| enum | source_file_t { kBinarySourceFile, kELFSourceFile, kIntelHexSourceFile, kSBSourceFile, kSRecordSourceFile } |
| Set of supported executable image file formats. More... | |
Static Public Member Functions inherited from blfwk::SourceFile | |
| static SourceFile * | openFile (const std::string &path) |
Protected Member Functions inherited from blfwk::SourceFile | |
| std::ifstream * | getStream () |
| Internal access to the input stream object. | |
Binary data file.