Gadget
runid.h
Go to the documentation of this file.
1 #ifndef runid_h
2 #define runid_h
3 
4 #include "gadget.h"
5 
10 class RunID {
11 public:
15  RunID();
19  ~RunID();
24  void Print(ostream& o);
29  void printTime(ostream& o);
30 protected:
34  char* hostname;
38  char* timestring;
42 #ifdef NOT_WINDOWS
43  struct utsname host;
44 #endif
48  time_t runtime;
49 };
50 
51 #endif
This is the class used to store information about the machine used for, and the time of,...
Definition: runid.h:10
char * hostname
This is the name of the host machine that is running the current model.
Definition: runid.h:34
RunID()
This is the default RunID constructor.
Definition: runid.cc:6
~RunID()
This is the default RunID destructor.
Definition: runid.cc:22
time_t runtime
This is the host machine that is running the current model.
Definition: runid.h:48
void Print(ostream &o)
This will print the model run information for the current model.
Definition: runid.cc:28
void printTime(ostream &o)
This will print information about the run time for the current model.
Definition: runid.cc:33
char * timestring
This is the time stamp used to denote the time that the current model run started.
Definition: runid.h:38