version  0.0.1
Defines the C++ API for MsPASS
Public Member Functions | List of all members
mspass::utility::ProcessManager Class Reference

Public Member Functions

 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. More...
 

Member Function Documentation

◆ new_newid()

std::string mspass::utility::ProcessManager::new_newid ( )
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.

Returns
new uuid definign this job in string form.
154  {
155  boost::uuids::uuid id;
156  id=gen();
157  return boost::uuids::to_string(id);
158  }

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