CYCLUS
|
DbInit provides an interface for agents to record data to the output db that automatically injects the agent's id and current timestep alongside all recorded data.
The prefix 'AgentState' + [spec] (e.g. MyReactor) is also added to the datum title
#include <db_init.h>
Public Member Functions | |
DbInit (Agent *m) | |
DbInit (Agent *m, bool dummy) | |
Datum * | NewDatum (std::string title) |
cyclus::DbInit::DbInit | ( | Agent * | m | ) |
Definition at line 8 of file db_init.cc.
Using this constructor prevents the [spec] from being injected into the title.
Definition at line 10 of file db_init.cc.
Datum * cyclus::DbInit::NewDatum | ( | std::string | title | ) |
Returns a new datum to be used exactly as the Context::NewDatum method.
Users must not add fields to the datum that are automatically injected: 'SimId', 'AgentId', and 'SimTime'.
Definition at line 12 of file db_init.cc.