1 #ifndef CYCLUS_SRC_RECORDER_H_ 2 #define CYCLUS_SRC_RECORDER_H_ 7 #include <boost/uuid/uuid.hpp> 8 #include <boost/uuid/uuid_io.hpp> 80 boost::uuids::uuid
sim_id();
87 if (x == inject_sim_id_) {
118 void NotifyBackends();
119 void AddDatum(
Datum* d);
123 std::list<RecBackend*> backs_;
124 unsigned int dump_count_;
125 boost::uuids::uuid uuid_;
136 #endif // CYCLUS_SRC_RECORDER_H_ boost::uuids::uuid sim_id()
returns the unique id associated with this cyclus simulation.
void set_dump_count(unsigned int count)
set the Recorder to flush its collected Datum objects to registered backends every [count] Datum obje...
void Close()
Flushes all buffered Datum objects and flushes all registered backends.
double b(int nuc)
Computes the scattering length [cm] from the coherent and incoherent components.
void inject_sim_id(bool x)
sets whether or not the unique simulation id will be injected.
unsigned int dump_count()
Return the dump frequency, # Datum objects buffered between flushes to backends.
Recorder()
create a new recorder with default dump frequency, random simulation id, and simulation id injection...
static unsigned int const kDefaultDumpCount
default number of Datum objects to collect before flushing to backends.
Used to specify and send a collection of key-value pairs to the Recorder for recording.
void Flush()
Flushes all buffered Datum objects and flushes all registered backends.
Collects and manages output data generation for the cyclus core and agents during a simulation...
An abstract base class for listeners (e.g.
void RegisterBackend(RecBackend *b)
Registers b to receive Datum notifications for all Datum objects collected by the Recorder and to rec...
Datum * NewDatum(std::string title)
Creates a new datum namespaced under the specified title.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
std::vector< Datum * > DatumList
bool inject_sim_id()
returns whether or not the unique simulation id will be injected.