![]() |
Kinetis Bootloader Host
2.0.0
Host Tools for Kinetis devices
|
Abstract base class for data sources. More...
#include <DataSource.h>
Inheritance diagram for elftosb::DataSource:
Collaboration diagram for elftosb::DataSource:Classes | |
| class | PatternSegment |
| This is a special type of segment containing a repeating pattern. More... | |
| class | Segment |
| Discrete, contiguous part of the source's data. More... | |
Public Member Functions | |
| DataSource () | |
| Default constructor. | |
| virtual | ~DataSource () |
| Destructor. | |
Data target | |
| void | setTarget (DataTarget *target) |
| Sets the associated data target. | |
| DataTarget * | getTarget () const |
| Gets the associated data target. | |
Segments | |
| virtual unsigned | getSegmentCount ()=0 |
| Returns the number of segments in this data source. | |
| virtual Segment * | getSegmentAt (unsigned index)=0 |
| Returns segment number index of the data source. | |
Protected Attributes | |
| DataTarget * | m_target |
| Corresponding target for this source. | |
Abstract base class for data sources.
Data sources represent any sort of data that can be placed or loaded into a target region. Sources may be a single blob of data read from a file or may consist of many segments.
The three most important features of data sources are: