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.
D_Job_Manager Class Reference

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)
 

Detailed Description

The D_Job_Manager class Manger for working jobs with multiple workers (i.e. PCs). WIP.

Constructor & Destructor Documentation

◆ D_Job_Manager()

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

Member Function Documentation

◆ add_bundle_range()

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

◆ add_job_range()

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

◆ finish_Job()

bool D_Job_Manager::finish_Job ( QString  job)

◆ get_JobString()

QString D_Job_Manager::get_JobString ( )

◆ get_JobVector()

vector<size_t> D_Job_Manager::get_JobVector ( )

◆ next_Job()

bool D_Job_Manager::next_Job ( )

◆ start_working()

bool D_Job_Manager::start_working ( )

do nothing if master dir not exists

create job lists


The documentation for this class was generated from the following files: