This interface is implemented by all objects that may build and provide a process.
More...
#include <otawa/prog/Loader.h>
|
virtual | ~Loader (void) |
| Virtual destructor for destruction customization. More...
|
|
This interface is implemented by all objects that may build and provide a process.
Many kind of loader may exists from the simple binary loader to the complex program builder.
The loader may put on the created processes zero or several of the following features according the machine-level feature provided:
Virtual destructor for destruction customization.
otawa::Loader::Loader |
( |
CString |
name, |
|
|
Version |
version, |
|
|
Version |
plugger_version, |
|
|
const elm::system::Plugin::aliases_t & |
aliases = elm::system::Plugin::aliases_t::EMPTY |
|
) |
| |
Build a new empty process matching the given properties.
- Parameters
-
man | Caller manager. |
props | Properties describing the process. |
- Returns
- Created process.
- Exceptions
-
UnsupportedPlatformException | Loader does not handle |
CString Loader::getName |
( |
void |
| ) |
const |
|
pure virtual |
Get the name of the loader.
- Returns
- Name of the loader.
Load the file matching the given path with the given properties.
The exact type of the file and of the properties depends upon the underlying loader.
- Parameters
-
man | Caller manager. |
path | Path to the file to load. |
props | Property for loading. |
- Returns
- Process containing the loaded file.
- Exceptions
-
LoadException | Error during the load. |
UnsupportedPlatformException | Loader does not handle this platform. |
Referenced by otawa::Manager::loadBin().
The documentation for this class was generated from the following files: