Revision 1 -
(download)
(annotate)
Mon Feb 10 17:09:07 2014 UTC
(10 years, 5 months ago)
by agomez File size: 1228 byte(s)
Initial version based on Gadget 2.2.00
#ifndef runid_h
#define runid_h
#include "gadget.h"
/**
* \class RunID
* \brief This is the class used to store information about the machine used for, and the time of, the model run
*/
class RunID {
public:
/**
* \brief This is the default RunID constructor
*/
RunID();
/**
* \brief This is the default RunID destructor
*/
~RunID();
/**
* \brief This will print the model run information for the current model
* \param o is the ofstream that the model run information will be written to
*/
void Print(ostream& o);
/**
* \brief This will print information about the run time for the current model
* \param o is the ofstream that the model run information will be written to
*/
void printTime(ostream& o);
protected:
/**
* \brief This is the name of the host machine that is running the current model
*/
char* hostname;
/**
* \brief This is the time stamp used to denote the time that the current model run started
*/
char* timestring;
/**
* \brief This is the host machine that is running the current model
*/
struct utsname host;
/**
* \brief This is the time that the current model started the simulation
*/
time_t runtime;
};
#endif