PRISM
 v0.0.0
Loading...
Searching...
No Matches
SpeciesSummaryWriterBase.h
1#pragma once
2
3#include <sstream>
4#include <string>
5#include <vector>
6#include <map>
7#include <memory>
8
9namespace prism
10{
11
13{
14
15public:
26 void clear()
27 {
28 _summary_str.str("");
29 _summary_str.clear();
30 }
31
32 /*
33 * Getter method for the summary string
34 */
35 std::stringstream & summaryString() { return _summary_str; }
39 virtual void addMiscSummary() = 0;
43 virtual void addLumpedSummary(std::map<std::string, std::vector<std::string>> lumped_map) = 0;
47 virtual void addSpeciesSummary() = 0;
48
49protected:
51 std::stringstream _summary_str;
52};
53
54}
Definition SpeciesSummaryWriterBase.h:13
SpeciesSummaryWriterBase()
Helper method for writing species summary for the reaction mechanism several methods of this type get...
Definition SpeciesSummaryWriterBase.h:22
virtual void addLumpedSummary(std::map< std::string, std::vector< std::string > > lumped_map)=0
Method for summarizing which species have been lumped into which others.
virtual void addMiscSummary()=0
Method for adding any random summaries to the top of the summary file.
std::stringstream _summary_str
the stream that is used to construct the summary
Definition SpeciesSummaryWriterBase.h:51
virtual void addSpeciesSummary()=0
Method for summarizing the reactions that each species is involved in.
void clear()
clears the state of the writer to begin a new file
Definition SpeciesSummaryWriterBase.h:26