![]() |
ImageD
v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
|
The D_Job_Manager class Manger for working jobs with multiple workers (i.e. PCs). WIP. More...
#include <d_job_manager.h>
Public Member Functions | |
D_Job_Manager (QDir jobs_dir, QString worker_id) | |
bool | add_job_range (QString QS_VarName, size_t loop_start, size_t loop_end) |
bool | add_bundle_range (QString QS_VarName, size_t loop_start, size_t loop_end) |
bool | start_working () |
bool | next_Job () |
QString | get_JobString () |
vector< size_t > | get_JobVector () |
bool | finish_Job (QString job) |
The D_Job_Manager class Manger for working jobs with multiple workers (i.e. PCs). WIP.
D_Job_Manager::D_Job_Manager | ( | QDir | jobs_dir, |
QString | worker_id | ||
) |
save worker id and master dir
create job dir, if not existent yet
bool D_Job_Manager::add_bundle_range | ( | QString | QS_VarName, |
size_t | loop_start, | ||
size_t | loop_end | ||
) |
remove _ characters from name
check if string is not empty
check if name is duplicate
append name, start and end to bundle var list
bool D_Job_Manager::add_job_range | ( | QString | QS_VarName, |
size_t | loop_start, | ||
size_t | loop_end | ||
) |
remove _ characters from name
check if string is not empty
check if name is duplicate
append name, start and end to job var list
bool D_Job_Manager::finish_Job | ( | QString | job | ) |
QString D_Job_Manager::get_JobString | ( | ) |
vector<size_t> D_Job_Manager::get_JobVector | ( | ) |
bool D_Job_Manager::next_Job | ( | ) |
bool D_Job_Manager::start_working | ( | ) |
do nothing if master dir not exists
create job lists