MAK RTIspy API Documentation for HLA 1516
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
HLA13DLC
baseTypes13.h
Go to the documentation of this file.
1
//File baseTypes13.h
2
//Included in RTI13.h
3
4
#ifndef BASETYPES13_H_INCLUDED
5
#define BASETYPES13_H_INCLUDED
6
7
#ifndef NULL
8
#define NULL (0)
9
#endif
10
11
namespace
rti13
12
{
13
14
typedef
unsigned
short
UShort
;
15
typedef
short
Short
;
16
#if defined(RTI_64_BIT_LONG)
17
typedef
unsigned
int
ULong
;
18
typedef
int
Long
;
19
#else
20
typedef
unsigned
long
ULong
;
21
typedef
long
Long
;
22
#endif
23
typedef
double
Double
;
24
typedef
float
Float
;
25
26
enum
Boolean
{
27
RTI_FALSE
= 0,
28
RTI_TRUE
};
29
30
class
RTI_EXPORT
Exception
{
31
public
:
32
ULong
_serial
;
33
char
*
_reason
;
34
const
char
*
_name
;
35
Exception
(
const
char
*reason);
36
Exception
(
ULong
serial,
const
char
*reason=
NULL
);
37
Exception
(
const
Exception
&toCopy);
38
virtual
~
Exception
();
39
Exception
& operator = (
const
Exception
&);
40
virtual
Exception
* cloneSelf()
const
throw() = 0;
41
virtual
void
throwSelf() const = 0;
42
};
43
44
#define RTI_EXCEPT(A) \
45
class A : public Exception { \
46
public: \
47
static RTI_EXPORT const char *_ex; \
48
A (const char *reason) : Exception (reason) { _name = _ex; } \
49
A (ULong serial, const char *reason=NULL) \
50
: Exception (serial, reason) { _name = _ex; } \
51
A (A const & toCopy) : Exception(toCopy) { _name = _ex; } \
52
Exception * cloneSelf() const throw() { return (new A(_reason)); } \
53
void throwSelf() const { throw *this; } \
54
};
55
56
}
// End of namespace rti13
57
58
#endif // BASETYPES13_H_INCLUDED
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
)