MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
HLA13
RTI.hh
Go to the documentation of this file.
1
//File RTI.hh
2
3
#ifndef RTI_hh
4
#define RTI_hh
5
6
#if defined(_WIN32)
7
// disable warning about exceptions not being part of a method's signature
8
#pragma warning(disable: 4290)
9
// disable warnings about deriving a "dllexport" class from a regular class
10
#pragma warning(disable: 4275)
11
#pragma warning(disable: 4251)
12
#if defined(BUILDING_RTI)
13
// define the proper qualifiers to import/export symbols from/to DLL
14
#define RTI_EXPORT __declspec(dllexport)
15
#else // !BUILDING_RTI
16
#define RTI_EXPORT __declspec(dllimport)
17
#endif // BUILDING_RTI
18
#if defined(BUILDING_FEDTIME)
19
// define the proper qualifiers to import/export symbols from/to DLL
20
#define RTI_EXPORT_FEDTIME __declspec(dllexport)
21
#else // !BUILDING_RTI
22
#define RTI_EXPORT_FEDTIME __declspec(dllimport)
23
#endif // BUILDING_FEDTIME
24
#else // !WIN32
25
// no special qualfifers are necessary on non-WIN32 platforms
26
#define RTI_EXPORT
27
#define RTI_EXPORT_FEDTIME
28
#endif
29
30
31
//
32
// This was modified for the RTI 1.3NG to allow the use the Standard C++ fstream
33
// header file or to use of the legacy fstream.h header file. The issue
34
// concerns whether ostream is in the global namespace or in namespace std.
35
//
36
#ifdef RTI_USES_STD_FSTREAM
37
#include <fstream>
38
#define RTI_STD std
39
#else
40
#include <fstream.h>
41
#define RTI_STD
/* nothing */
42
#endif
43
44
//
45
// This has been commented out for the RTI 1.3NG due to an inconvenient naming
46
// collision between struct exception {}; in math.h and the common
47
// implementation of the standard C++ exception class with the Sun 4.2 C++
48
// compiler
49
//
50
// #include <math.h>
51
52
struct
RTIambPrivateRefs;
53
struct
RTIambPrivateData;
54
55
class
RTI
{
56
57
public
:
58
#include "
baseTypes.hh
"
59
#include "
RTItypes.hh
"
60
61
class
RTI_EXPORT
RTIambassador
{
62
public
:
63
#include "
RTIambServices.hh
"
64
RTIambPrivateData*
privateData
;
65
private
:
66
RTIambPrivateRefs*
privateRefs
;
67
};
68
69
class
RTI_EXPORT
FederateAmbassador
{
70
public
:
71
#include "
federateAmbServices.hh
"
72
};
73
};
74
75
//
76
// RTI_STD was added for the RTI 1.3NG to allow the use of the Standard C++
77
// ostream or to use the legacy ostream. The issue concerns whether ostream
78
// is in the global namespace or in namespace std.
79
//
80
// Moved from basetypes.hh to this file in order to avoid the 'using' statement
81
// for these operators
82
83
RTI_STD::ostream
RTI_EXPORT
&
84
operator <<
(RTI_STD::ostream &,
RTI::Exception
*);
85
86
RTI_STD::ostream
RTI_EXPORT
&
87
operator <<
(RTI_STD::ostream &,
RTI::Exception
const
&);
88
89
#endif
Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (
www.mak.com
)