![]() |
API Documentation
|
A thread designed to read and write files using the FactoryIO interface. Thread will perform all actions on a temp file, then move the file when accept() is called. More...
#include <CachedFactoryIOThread.h>
Public Member Functions | |
void | accept () |
CachedFactoryIOThread (bool is_read) | |
void | cancel () |
void | deleteReadIDs () |
void | deleteTempFiles () |
bool | executeRead (Buffer< FactoryParameters > &requests) |
bool | executeWrite (Buffer< FactoryParameters > &requests) |
ModelFactory * | factory () const |
bool | isAccepted () const |
bool | isFinished () const |
void | kill (bool terminate_current) |
const Buffer< FactoryParameters > & | lastRequests () const |
bool | readFile (FactoryParameters &file) |
void | requestStopLoad () |
void | reset () |
void | run () override |
void | setExceptionHandler (const std::function< void(const Exception &)> &exception_handler) |
void | setFiles (const Buffer< FactoryParameters > &files) |
void | setFinishedCallback (const std::function< void(bool success)> &finished_callback) |
void | stopThread () override |
bool | writeFile (FactoryParameters &file) |
bool | writeTempFiles () |
![]() | |
void | detach () |
void | forceStop () |
bool | isPrimaryThread () const |
bool | isRunning () const |
void | join () |
virtual void | requestStopThread () |
void | setIsPrimaryThread (bool is_primary_thread) |
void | setThreadName (const String &name) |
virtual bool | shouldExitThread () const |
void | start () |
Thread () | |
Thread (const String &name) | |
Thread (const Thread &name)=delete | |
const String & | threadName () const |
virtual | ~Thread () |
Additional Inherited Members | |
![]() | |
static Thread & | CurrentThread () |
static String | CurrentThreadName () |
static void | ServiceVirtualThreads () |
static void | SetCurrentThreadName (const String &name) |
static void | StopAllThreads () |
![]() | |
const std::thread & | self () |
![]() | |
volatile bool | m_is_running = false |
volatile bool | m_is_single_run = true |
A thread designed to read and write files using the FactoryIO interface. Thread will perform all actions on a temp file, then move the file when accept() is called.
CachedFactoryIOThread | ( | bool | is_read | ) |
void accept | ( | ) |
void cancel | ( | ) |
void deleteReadIDs | ( | ) |
void deleteTempFiles | ( | ) |
bool executeRead | ( | Buffer< FactoryParameters > & | requests | ) |
bool executeWrite | ( | Buffer< FactoryParameters > & | requests | ) |
|
inline |
|
inline |
bool isFinished | ( | ) | const |
void kill | ( | bool | terminate_current | ) |
|
inline |
bool readFile | ( | FactoryParameters & | file | ) |
void requestStopLoad | ( | ) |
void reset | ( | ) |
|
overridevirtual |
Reimplemented from Thread.
|
inline |
void setFiles | ( | const Buffer< FactoryParameters > & | files | ) |
|
inline |
|
overridevirtual |
Reimplemented from Thread.
bool writeFile | ( | FactoryParameters & | file | ) |
bool writeTempFiles | ( | ) |