Gadget
printinfo.h
Go to the documentation of this file.
1 #ifndef printinfo_h
2 #define printinfo_h
3 
4 #include "gadget.h"
5 
10 class PrintInfo {
11 public:
15  PrintInfo();
20  PrintInfo(const PrintInfo& pi);
24  ~PrintInfo();
29  void setParamOutFile(char* filename);
34  void setOutputFile(char* filename);
39  void setPrintIteration(int print) { printiter = print; };
44  void setPrecision(int prec) { givenPrecision = prec; };
49  void checkPrintInfo(int net);
54  char* getOutputFile() const { return strOutputFile; };
59  char* getParamOutFile() const { return strParamOutFile; };
64  int getPrint() const { return printoutput; };
69  int getPrecision() const { return givenPrecision; };
74  int getPrintIteration() const { return printiter; };
75 private:
79  char* strParamOutFile;
83  char* strOutputFile;
87  int printiter;
91  int printoutput;
95  int givenPrecision;
96 };
97 
98 #endif
This is the class used to store information about what format the model parameters should be written ...
Definition: printinfo.h:10
void setPrecision(int prec)
This function will set the precision to be used when printing the model parameters.
Definition: printinfo.h:44
char * getOutputFile() const
This function will return the filename that the model parameters will be written to.
Definition: printinfo.h:54
PrintInfo()
This is the PrintInfo constructor.
Definition: printinfo.cc:6
void setParamOutFile(char *filename)
This function will store the filename that the final parameter values will be written to.
Definition: printinfo.cc:56
~PrintInfo()
This is the default MainInfo destructor.
Definition: printinfo.cc:31
void setPrintIteration(int print)
This function will set the interval between iterations to be used when printing the model parameters ...
Definition: printinfo.h:39
char * getParamOutFile() const
This function will return the filename that the final parameter values will be written to.
Definition: printinfo.h:59
int getPrecision() const
This function will return the precision to be used when printing the model parameters.
Definition: printinfo.h:69
int getPrint() const
This function will return the flag used to determine whether the model parameters should be printed t...
Definition: printinfo.h:64
void checkPrintInfo(int net)
This function will check the printing intervals and precision values that have been set,...
Definition: printinfo.cc:69
int getPrintIteration() const
This function will return the interval between iterations to be used when printing the model paramete...
Definition: printinfo.h:74
void setOutputFile(char *filename)
This function will store the filename that the model parameters will be written to.
Definition: printinfo.cc:42