MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
HLA13
baseTypes.hh
Go to the documentation of this file.
1
//File baseTypes.hh
2
//Included in RTI.hh
3
4
#ifndef NULL
5
#define NULL (0)
6
#endif
7
8
typedef
unsigned
short
UShort
;
9
typedef
short
Short
;
10
#if defined(__alpha) || (defined(__sgi) && _MIPS_SZLONG == 64) || (defined(__sparcv9)) || (defined(__x86_64))
11
typedef
unsigned
int
ULong
;
12
typedef
int
Long
;
13
#else
14
typedef
unsigned
long
ULong
;
15
typedef
long
Long
;
16
#endif
17
typedef
double
Double
;
18
typedef
float
Float
;
19
20
enum
Boolean
{
21
RTI_FALSE
= 0,
22
RTI_TRUE
};
23
24
class
RTI_EXPORT
Exception
{
25
public
:
26
ULong
_serial
;
27
char
*
_reason
;
28
const
char
*
_name
;
29
Exception
(
const
char
*reason);
30
Exception
(
ULong
serial,
const
char
*reason=
NULL
);
31
Exception
(
const
Exception
&toCopy);
32
virtual
~
Exception
();
33
Exception
& operator = (
const
Exception
&);
34
//
35
// Added for RTI 1.3 NG to workaround a Sun 4.2 C++ compiler bug.
36
// These are used internally to pass exceptions between threads.
37
//
38
virtual
Exception
* cloneSelf()
const
throw() = 0;
39
virtual
void
throwSelf() const = 0;
40
};
41
42
#define RTI_EXCEPT(A) \
43
class A : public Exception { \
44
public: \
45
static RTI_EXPORT const char *_ex; \
46
A (const char *reason) : Exception (reason) { _name = _ex; } \
47
A (ULong serial, const char *reason=NULL) \
48
: Exception (serial, reason) { _name = _ex; } \
49
A (A const & toCopy) : Exception(toCopy) { _name = _ex; } \
50
Exception * cloneSelf() const throw() { return (new A(_reason)); } \
51
void throwSelf() const { throw *this; } \
52
};
53
54
55
56
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
)