A file loader.
More...
#include <FileLoaderImpl.h>
A file loader.
Definition at line 40 of file FileLoaderImpl.h.
◆ FileLoaderImpl()
FileLoaderImpl::FileLoaderImpl |
( |
const string & |
filename | ) |
|
|
inline |
Constructs a file loader.
- Parameters
-
filename | The filename to load. |
Definition at line 49 of file FileLoaderImpl.h.
◆ ~FileLoaderImpl()
virtual FileLoaderImpl::~FileLoaderImpl |
( |
| ) |
|
|
inlinevirtual |
◆ DetectFileType()
virtual string FileLoaderImpl::DetectFileType |
( |
unsigned char * |
buf, |
|
|
size_t |
buflen, |
|
|
float & |
matchness |
|
) |
| const |
|
pure virtual |
Attempt to detect file type.
- Parameters
-
buf | A buffer containing the header of the file. |
buflen | The length of the buffer. |
matchness | Set to a value between 0.0 and 1.0, indicating the match certainty. |
- Returns
- A file type description, if there was a match; otherwise an empty string.
Implemented in FileLoader_aout, FileLoader_bout, FileLoader_ELF, and FileLoader_raw.
◆ Filename()
const string& FileLoaderImpl::Filename |
( |
| ) |
const |
|
inlineprotected |
◆ LoadIntoComponent()
virtual bool FileLoaderImpl::LoadIntoComponent |
( |
refcount_ptr< Component > |
component, |
|
|
ostream & |
messages |
|
) |
| const |
|
pure virtual |
The documentation for this class was generated from the following file: