Statistics
| Branch: | Revision:

root / src / envir / runattributes.h @ 81ad8b66

History | View | Annotate | Download (1.22 KB)

1 01873262 Georg Kunz
//==========================================================================
2
//  RUNATTRIBUTES.H - part of
3
//                     OMNeT++/OMNEST
4
//            Discrete System Simulation in C++
5
//
6
//  Author: Tamas Borbely
7
//
8
//==========================================================================
9
10
/*--------------------------------------------------------------*
11
  Copyright (C) 1992-2008 Andras Varga
12
  Copyright (C) 2006-2008 OpenSim Ltd.
13

14
  This file is distributed WITHOUT ANY WARRANTY. See the file
15
  `license' for details on this and other legal matters.
16
*--------------------------------------------------------------*/
17
18
#ifndef __RUNATTRIBUTES_H
19
#define __RUNATTRIBUTES_H
20
21
#include <stdio.h>
22
#include "envirdefs.h"
23
24
NAMESPACE_BEGIN
25
26
/**
27
 * Collects and writes the run attributes and parameters.
28
 *
29
 * @ingroup Envir
30
 */
31
struct sRunData {
32
   bool initialized;        // true if the other fields are valid
33
   opp_string runId;        // id of the run
34
   opp_string_map attributes;    // attributes of the run
35
   opp_string_map moduleParams;  // module parameters in the current run
36
37
   sRunData() : initialized(false) {}
38
   void initRun();
39
   void reset();
40
   void writeRunData(FILE *f, opp_string fname);
41
};
42
43
NAMESPACE_END
44
45
#endif