FileLoader that loads a file synchronously.
More...
#include <DummyFileLoader.h>
|
template<class TDummy > |
| DummyFileLoader (TDummy &) |
|
| DummyFileLoader ()=default |
|
template<class TQueue > |
void | ReadFile (const char *path, std::function< void(Blob &)> handler, TQueue &handlerQueue, typename TQueue::FinishFlag &finishFlag, size_t offset=0, size_t length=0) |
| Read entire file and pass contents to handler. More...
|
|
template<class TQueue > |
void | ReadFile (const char *path, std::function< void(Blob &)> handler, TQueue &handlerQueue, size_t offset=0, size_t length=0) |
|
FileLoader that loads a file synchronously.
template<class TDummy >
molecular::util::DummyFileLoader::DummyFileLoader |
( |
TDummy & |
| ) |
|
|
inline |
molecular::util::DummyFileLoader::DummyFileLoader |
( |
| ) |
|
|
default |
template<class TQueue >
void molecular::util::DummyFileLoader::ReadFile |
( |
const char * |
path, |
|
|
std::function< void(Blob &)> |
handler, |
|
|
TQueue & |
handlerQueue, |
|
|
typename TQueue::FinishFlag & |
finishFlag, |
|
|
size_t |
offset = 0 , |
|
|
size_t |
length = 0 |
|
) |
| |
Read entire file and pass contents to handler.
- Parameters
-
path | Path to file |
handler | Function to call when file is loaded. |
handlerQueue | Queue to run handler in. |
template<class TQueue >
void molecular::util::DummyFileLoader::ReadFile |
( |
const char * |
path, |
|
|
std::function< void(Blob &)> |
handler, |
|
|
TQueue & |
handlerQueue, |
|
|
size_t |
offset = 0 , |
|
|
size_t |
length = 0 |
|
) |
| |
The documentation for this class was generated from the following file: