|
MsPASS C++ API
2.4.1.dev4+g92330b7a
Defines the C++ API for MsPASS
|
Manager for process-level algorithm and job identifiers. More...
#include <ProcessManager.h>
Public Member Functions | |
| ProcessManager () | |
| ProcessManager (std::string fname) | |
| AlgorithmDefinition | algorithm (const std::string name, const size_t instance=0) const |
| std::string | jobname () const |
| std::string | jobid () const |
| std::string | new_newid () |
| Get a new UUID to define unique job run. | |
Manager for process-level algorithm and job identifiers.
| mspass::utility::ProcessManager::ProcessManager | ( | ) |
Construct a default process manager.
| mspass::utility::ProcessManager::ProcessManager | ( | std::string | fname | ) |
Construct from a serialized process-manager file.
| AlgorithmDefinition mspass::utility::ProcessManager::algorithm | ( | const std::string | name, |
| const size_t | instance = 0 |
||
| ) | const |
Return an algorithm definition by name and instance number.
|
inline |
Return the job UUID as a string.
|
inline |
Return the job name.
|
inline |
Get a new UUID to define unique job run.
MsPASS data objects are tagged with a UUID to properly handle processing history. Procedures can call his method to get a uuid based on boost's random_generator. We keep the generator in this object because web conversations suggest construction of random_generator is expensive in time and needs to not be done at the object level.