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();
123 std::list<RecBackend*> backs_;
124 unsigned int dump_count_;
125 boost::uuids::uuid uuid_;
Used to specify and send a collection of key-value pairs to the Recorder for recording.
An abstract base class for listeners (e.g.
Collects and manages output data generation for the cyclus core and agents during a simulation.
void RegisterBackend(RecBackend *b)
Registers b to receive Datum notifications for all Datum objects collected by the Recorder and to rec...
void inject_sim_id(bool x)
sets whether or not the unique simulation id will be injected.
boost::uuids::uuid sim_id()
returns the unique id associated with this cyclus simulation.
bool inject_sim_id()
returns whether or not the unique simulation id will be injected.
void set_dump_count(unsigned int count)
set the Recorder to flush its collected Datum objects to registered backends every [count] Datum obje...
void Flush()
Flushes all buffered Datum objects and flushes all registered backends.
unsigned int dump_count()
Return the dump frequency, # Datum objects buffered between flushes to backends.
Datum * NewDatum(std::string title)
Creates a new datum namespaced under the specified title.
Recorder()
create a new recorder with default dump frequency, random simulation id, and simulation id injection.
void Close()
Flushes all buffered Datum objects and flushes all registered backends.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
static unsigned int const kDefaultDumpCount
default number of Datum objects to collect before flushing to backends.
std::vector< Datum * > DatumList
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters