Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] Annotation of /trunk/gadget/runid.h
[mareframe] / trunk / gadget / runid.h Repository:
ViewVC logotype

Annotation of /trunk/gadget/runid.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (view) (download)

1 : agomez 1 #ifndef runid_h
2 :     #define runid_h
3 :    
4 :     #include "gadget.h"
5 :    
6 :     /**
7 :     * \class RunID
8 :     * \brief This is the class used to store information about the machine used for, and the time of, the model run
9 :     */
10 :     class RunID {
11 :     public:
12 :     /**
13 :     * \brief This is the default RunID constructor
14 :     */
15 :     RunID();
16 :     /**
17 :     * \brief This is the default RunID destructor
18 :     */
19 :     ~RunID();
20 :     /**
21 :     * \brief This will print the model run information for the current model
22 :     * \param o is the ofstream that the model run information will be written to
23 :     */
24 :     void Print(ostream& o);
25 :     /**
26 :     * \brief This will print information about the run time for the current model
27 :     * \param o is the ofstream that the model run information will be written to
28 :     */
29 :     void printTime(ostream& o);
30 :     protected:
31 :     /**
32 :     * \brief This is the name of the host machine that is running the current model
33 :     */
34 :     char* hostname;
35 :     /**
36 :     * \brief This is the time stamp used to denote the time that the current model run started
37 :     */
38 :     char* timestring;
39 :     /**
40 :     * \brief This is the host machine that is running the current model
41 :     */
42 :     struct utsname host;
43 :     /**
44 :     * \brief This is the time that the current model started the simulation
45 :     */
46 :     time_t runtime;
47 :     };
48 :    
49 :     #endif

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge