1#ifndef CYCLUS_SRC_DATUM_H_
2#define CYCLUS_SRC_DATUM_H_
19 typedef std::pair<const char*, boost::spirit::hold_any>
Entry;
20 typedef std::vector<Entry>
Vals;
23 typedef std::vector<std::string>
Fields;
50 std::vector<int>* shape =
NULL);
52 std::vector<int>* shape =
NULL);
72 static void*
operator new(
size_t size);
73 static void operator delete(
void*
rawMemory)
throw();
80 std::vector<int>* shape =
NULL);
Used to specify and send a collection of key-value pairs to the Recorder for recording.
Datum * AddVal(const char *field, boost::spirit::hold_any val, std::vector< int > *shape=NULL)
Add an arbitrary field-value pair to the datum.
std::vector< std::string > Fields
std::vector< Shape > Shapes
const Fields & fields()
Returns a vector of all field names that have been added to this datum.
const Shapes & shapes()
Returns a vector of all shapes (pointers to vectors of ints) that have been added to this datum.
std::pair< const char *, boost::spirit::hold_any > Entry
void Record()
Record this datum to its Recorder.
std::vector< Entry > Vals
std::string title()
Returns the datum's title as specified during the datum's creation.
const Vals & vals()
Returns a vector of all field-value pairs that have been added to this datum.
Collects and manages output data generation for the cyclus core and agents during a simulation.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters