Gadget
stockprinter.h
Go to the documentation of this file.
1 #ifndef stockprinter_h
2 #define stockprinter_h
3 
4 #include "printer.h"
5 #include "stockaggregator.h"
6 
11 class StockPrinter : public Printer {
12 public:
18  StockPrinter(CommentStream& infile, const TimeClass* const TimeInfo);
22  virtual ~StockPrinter();
28  virtual void setStock(StockPtrVector& stockvec, const AreaClass* const Area);
34  virtual void Print(const TimeClass* const TimeInfo, int printtime);
35 protected:
72 };
73 
74 #endif
This class implements a dynamic vector of AgeBandMatrix values.
Definition: agebandmatrixptrvector.h:12
This is the class used to store information about the areas used for the current model.
Definition: areatime.h:18
This class implements a dynamic vector of char values.
Definition: charptrvector.h:8
This is the class used to strip comments (and whitespace) from any input stream.
Definition: commentstream.h:40
This class implements a dynamic vector of IntVector values.
Definition: intmatrix.h:10
This is the class used to store information about the length groups of the modelled stock population.
Definition: lengthgroup.h:10
This is the base class used to print the modelled population during a model simulation.
Definition: printer.h:26
This is the class used to aggregate stock information.
Definition: stockaggregator.h:14
This is the class used to print information about one or more stocks.
Definition: stockprinter.h:11
virtual void setStock(StockPtrVector &stockvec, const AreaClass *const Area)
This will select the stocks required for the printer class to print the requested information.
Definition: stockprinter.cc:137
CharPtrVector stocknames
This is the CharPtrVector of the names of the stocks to print.
Definition: stockprinter.h:59
CharPtrVector areaindex
This is the CharPtrVector of the names of the aggregated areas to print.
Definition: stockprinter.h:47
const AgeBandMatrixPtrVector * alptr
This is the AgeBandMatrixPtrVector used to temporarily store the information returned from the aggreg...
Definition: stockprinter.h:71
CharPtrVector ageindex
This is the CharPtrVector of the names of the aggregated ages to print.
Definition: stockprinter.h:51
CharPtrVector lenindex
This is the CharPtrVector of the names of the lengths to print.
Definition: stockprinter.h:55
IntMatrix ages
This is the IntMatrix used to store aggregated age information.
Definition: stockprinter.h:43
LengthGroupDivision * LgrpDiv
This is the LengthGroupDivision of the stock.
Definition: stockprinter.h:63
virtual ~StockPrinter()
This is the default StockPrinter destructor.
Definition: stockprinter.cc:249
StockPrinter(CommentStream &infile, const TimeClass *const TimeInfo)
This is the default StockPrinter constructor.
Definition: stockprinter.cc:16
IntMatrix areas
This is the IntMatrix used to store aggregated area information.
Definition: stockprinter.h:39
virtual void Print(const TimeClass *const TimeInfo, int printtime)
This will print the requested information for the printer class to the ofstream specified.
Definition: stockprinter.cc:219
StockAggregator * aggregator
This is the StockAggregator used to collect information about the stocks.
Definition: stockprinter.h:67
This class implements a dynamic vector of Stock values.
Definition: stockptrvector.h:10
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87