The Sparta Modeling Framework
|
This class serializes a sparta::Report's entire SI tree (node names, parent nodes / child nodes / etc.) into the SINodeHierarchy table in the database object you provide. More...
#include <SINodeHierarchy.hpp>
Public Member Functions | |
SINodeHierarchy (db::ReportTimeseries &db_timeseries, const Report &report) | |
simdb::DatabaseID | serializeHierarchy (simdb::ObjectManager &obj_mgr) |
This class serializes a sparta::Report's entire SI tree (node names, parent nodes / child nodes / etc.) into the SINodeHierarchy table in the database object you provide.
TODO: This is specifically for timeseries reports. All other report formats go through ReportNodeHierarchy to get their report/SI trees written to a different table. It would be easier to work with a schema that can put timeseries and non-timeseries report hierarchies and metadata into the same set of tables, but for now they are separate.
Definition at line 38 of file SINodeHierarchy.hpp.
sparta::statistics::SINodeHierarchy::SINodeHierarchy | ( | db::ReportTimeseries & | db_timeseries, |
const Report & | report | ||
) |
Construct with the sparta::Report we are serializing, and the database ReportTimeseries object we are writing all report information into.
simdb::DatabaseID sparta::statistics::SINodeHierarchy::serializeHierarchy | ( | simdb::ObjectManager & | obj_mgr | ) |
Write out all report/subreport/SI hierarchy metadata for this report into the provided database. Returns the database ID corresponding to the root-level Report node in this hierarchy.