molecular
Public Member Functions | List of all members
molecular::util::DummyFileLoader Class Reference

FileLoader that loads a file synchronously. More...

#include <DummyFileLoader.h>

Public Member Functions

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)
 

Detailed Description

FileLoader that loads a file synchronously.

Constructor & Destructor Documentation

template<class TDummy >
molecular::util::DummyFileLoader::DummyFileLoader ( TDummy &  )
inline
molecular::util::DummyFileLoader::DummyFileLoader ( )
default

Member Function Documentation

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
pathPath to file
handlerFunction to call when file is loaded.
handlerQueueQueue 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: