Project

General

Profile

Statistics
| Branch: | Revision:

root / src / scave / scavedefs.h @ cbd2c699

History | View | Annotate | Download (1.33 KB)

1
//=========================================================================
2
//  SCAVEDEFS.H - part of
3
//                  OMNeT++/OMNEST
4
//           Discrete System Simulation in C++
5
//
6
//  Author: Tamas Borbely, Andras Varga
7
//
8
//=========================================================================
9

    
10
/*--------------------------------------------------------------*
11
  Copyright (C) 2006-2008 OpenSim Ltd.
12

13
  This file is distributed WITHOUT ANY WARRANTY. See the file
14
  `license' for details on this and other legal matters.
15
*--------------------------------------------------------------*/
16

    
17
#ifndef _SCAVEDEFS_H_
18
#define _SCAVEDEFS_H_
19

    
20
#include "intxtypes.h" // for int64, our equivalent of Java's "long" type
21
#include "platdefs.h"
22
#include "bigdecimal.h"
23

    
24
NAMESPACE_BEGIN
25

    
26
#if defined(SCAVE_EXPORT)
27
#  define SCAVE_API OPP_DLLEXPORT
28
#elif defined(SCAVE_IMPORT) || defined(OMNETPPLIBS_IMPORT)
29
#  define SCAVE_API OPP_DLLIMPORT
30
#else
31
#  define SCAVE_API
32
#endif
33

    
34
#define DEFAULT_PRECISION  14
35

    
36
// simulation time
37
typedef BigDecimal simultime_t;
38
#define SIMTIME_MIN BigDecimal::NegativeInfinity
39
#define SIMTIME_MAX BigDecimal::PositiveInfinity
40

    
41
typedef int64 eventnumber_t;
42

    
43
/**
44
 * Used by VectorResult as well as filter nodes e.g. Integrate
45
 */
46
enum InterpolationMode { UNSPECIFIED, NONE, SAMPLE_HOLD, BACKWARD_SAMPLE_HOLD, LINEAR };
47

    
48

    
49
NAMESPACE_END
50

    
51

    
52
#endif
53

    
54