MAK RTIspy API Documentation for HLA Evolved
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
HLA13DLC
RTI13.h
Go to the documentation of this file.
1
//File RTI13.h
2
3
#ifndef RTI13_h
4
#define RTI13_h
5
6
// Identification of the API version number.
7
#define HLA_SPECIFICATION_NAME "1.3"
8
#define HLA_API_MAJOR_VERSION 7
9
#define HLA_API_MINOR_VERSION 0
10
11
#if defined(_WIN32)
12
#if defined(_MSC_VER) && defined(RTI_DISABLE_WARNINGS)
13
// disable warning about exceptions not being part of a method's signature
14
#pragma warning(disable: 4290)
15
// disable warnings about a "dllexport" class using a regular class
16
#pragma warning(disable: 4251)
17
#endif
18
//
19
// On Windows, BUILDING_RTI should be defined only when compiling
20
// the RTI DLL (i.e. by RTI developers). BUILDING_FEDTIME should
21
// be defined only when building a libfedtime DLL. STATIC_RTI
22
// should be defined when building a static (non-DLL) RTI library,
23
// or when building a federate that wants to statically link to
24
// an RTI library. STATIC_FEDTIME should be defined when building
25
// a static (non-DLL) fedtime library, or when building a federate
26
// that wants to statically link to a fedtime library.
27
//
28
#if defined(STATIC_RTI)
29
#define RTI_EXPORT
30
#else
31
#if defined(BUILDING_RTI)
32
// define the proper qualifiers to import/export symbols from/to DLL
33
#define RTI_EXPORT __declspec(dllexport)
34
#else // !BUILDING_RTI
35
#define RTI_EXPORT __declspec(dllimport)
36
#endif // BUILDING_RTI
37
#endif // STATIC_RTI
38
39
#if defined(STATIC_FEDTIME)
40
#define RTI_EXPORT_FEDTIME
41
#else
42
#if defined(BUILDING_FEDTIME)
43
// define the proper qualifiers to import/export symbols from/to DLL
44
#define RTI_EXPORT_FEDTIME __declspec(dllexport)
45
#else // !BUILDING_FEDTIME
46
#define RTI_EXPORT_FEDTIME __declspec(dllimport)
47
#endif // BUILDING_FEDTIME
48
#endif // STATIC_FEDTIME
49
50
#else // !WIN32
51
// no special qualfifers are necessary on non-WIN32 platforms
52
#define RTI_EXPORT
53
#define RTI_EXPORT_FEDTIME
54
#endif
55
56
//
57
// On platforms that support both the standard C++ version of
58
// ostream (std::ostream), and the legacy ostream in the global
59
// namespace, an RTI library will contain two versions of each
60
// RTI function that relies on the ostream class. This allows
61
// federates to work with either new or old ostreams. When a
62
// federate includes RTI header files, it should define
63
// RTI_USES_STD_FSTREAM if and only if it is using std::ostream,
64
// and therefore wishes to use the std::ostream versions of these
65
// RTI functions.
66
//
67
#ifdef RTI_USES_STD_FSTREAM
68
#include <fstream>
69
#define RTI_STD std
70
#else
71
#include <fstream.h>
72
#define RTI_STD
/* nothing */
73
#endif
74
75
#include "
baseTypes13.h
"
76
#include "
RTItypes13.h
"
77
78
namespace
rti13
79
{
80
struct
RTIambPrivateRefs;
81
struct
RTIambPrivateData;
82
83
// Vendor-specific name and version of the RTI implementation
84
const
char
*
RTIname
();
85
const
char
*
RTIversion
();
// identical to MOM attributes of same name
86
87
class
RTI_EXPORT
RTIambassador
{
88
public
:
89
#include "
RTIambServices13.h
"
90
RTIambPrivateData*
privateData
;
91
private
:
92
RTIambPrivateRefs*
privateRefs
;
93
};
94
95
class
RTI_EXPORT
FederateAmbassador
{
96
public
:
97
#include "
federateAmbServices13.h
"
98
};
99
}
// End of namespace rti13
100
101
RTI_STD::ostream
RTI_EXPORT
&
102
operator <<
(RTI_STD::ostream &,
rti13::Exception
*);
103
104
RTI_STD::ostream
RTI_EXPORT
&
105
operator <<
(RTI_STD::ostream &,
rti13::Exception
const
&);
106
107
RTI_STD::ostream
RTI_EXPORT
&
108
operator <<
(RTI_STD::ostream &,
const
rti13::FedTime
&);
109
110
#endif // RTI13_h
Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)