|
The Sparta Modeling Framework
|
Configuration applicator class that is used for configuring a simulator's reports. Works in conjunction with sparta::app::ReportDescriptorCollection. More...
#include <ReportDescriptor.hpp>
Public Member Functions | |
| ReportConfiguration (SimulationConfiguration *sim_config, ReportDescriptorCollection *collection, RootTreeNode *root) | |
| ReportConfiguration (const ReportConfiguration &)=delete | |
| ReportConfiguration & | operator= (const ReportConfiguration &)=delete |
| void | addReport (const ReportDescriptor &rd) |
| Add one report descriptor to this collection. | |
| void | addReportsFromYaml (const std::string &yaml_file) |
| void | removeReportByName (const std::string &rd_name) |
| void | addMemoryReportsFromYaml (const std::string &yaml_file) |
| void | showAllReportDescriptorInfo () |
| Pretty print information about all app::ReportDescriptor's. | |
| void | serializeAllDescriptorsToYaml () |
| ReportDescriptorCollection * | getDescriptors () |
| Access the underlying report descriptors. | |
| const ReportDescriptorCollection * | getDescriptors () const |
| Access the underlying report descriptors. | |
Friends | |
| class | Simulation |
Configuration applicator class that is used for configuring a simulator's reports. Works in conjunction with sparta::app::ReportDescriptorCollection.
Definition at line 775 of file ReportDescriptor.hpp.
| void sparta::app::ReportConfiguration::addMemoryReportsFromYaml | ( | const std::string & | yaml_file | ) |
Set up memory usage report from a yaml file configuration (this is the same as –log-memory-usage <yaml file> at the command line). This yaml file will be parsed relative to the simulation's root tree node.
| void sparta::app::ReportConfiguration::addReportsFromYaml | ( | const std::string & | yaml_file | ) |
Parse the given yaml file relative to the simulation's root tree node, and add the parsed descriptors to this report collection
| void sparta::app::ReportConfiguration::removeReportByName | ( | const std::string & | rd_name | ) |
Remove (filter) a report by the ReportDescriptor's "dest_file" name
| void sparta::app::ReportConfiguration::serializeAllDescriptorsToYaml | ( | ) |
Print out the YAML equivalent of all report descriptors in the simulation
|
friend |
Definition at line 836 of file ReportDescriptor.hpp.