VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vlMachineTypes.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2026 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
8 #pragma once
9 
10 #if VXWORKS
11 #include <vxworks.h>
12 #endif
13 
14 #ifndef VLCONFIG_INCLUDED_H_
15 #include "vlConfig.h"
16 #endif
17 #include "vlVersion.h"
18 
19 /* defined(__cplusplus), not __cplusplus,
20  * because __SUNPRO_CC defines it to be empty */
21 #if DT_HAVE_STD_H && defined(__cplusplus)
22 #include <std.h>
23 #endif
24 
25 #include <sys/types.h>
26 
30 #define DtBoolean bool
31 
35 #define DtFalse false
36 
40 #define DtTrue true
41 
47 #if (defined(__cplusplus) && __cplusplus >= 201703L) || \
48  (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
49 #define DT_THROW_SPEC(...)
50 #else
51 #define DT_THROW_SPEC(...) throw(__VA_ARGS__)
52 #endif
53 
54 /* Windows requires extra work to export from DLLs */
55 #if DT_NEED_DLL_DECLARATIONS
56 
57 #ifdef DT_DLL_MTL
58 #undef DT_DLL_MTL
59 #define DT_DLL_MTL __declspec( dllexport )
60 #else
61 #define DT_DLL_MTL __declspec( dllimport )
62 #endif
63 
64 #ifdef DT_DLL_MATRIX
65 #undef DT_DLL_MATRIX
66 #define DT_DLL_MATRIX __declspec( dllexport )
67 #else
68 #define DT_DLL_MATRIX __declspec( dllimport )
69 #endif
70 
71 #ifdef DT_DLL_VL
72 #undef DT_DLL_VL
73 #define DT_DLL_VL __declspec( dllexport )
74 #else
75 #define DT_DLL_VL __declspec( dllimport )
76 #endif
77 
78 #ifdef DT_DLL_VLPROTIND
79 #undef DT_DLL_VLPROTIND
80 #define DT_DLL_VLPROTIND __declspec( dllexport )
81 #else
82 #define DT_DLL_VLPROTIND __declspec( dllimport )
83 #endif
84 
85 #ifdef DT_DLL_NETCOMPAT
86 #undef DT_DLL_NETCOMPAT
87 #define DT_DLL_NETCOMPAT __declspec( dllexport )
88 #else
89 #define DT_DLL_NETCOMPAT __declspec( dllimport )
90 #endif
91 
92 #ifdef DT_DLL_VLUTIL
93 #undef DT_DLL_VLUTIL
94 #define DT_DLL_VLUTIL __declspec( dllexport )
95 #else
96 #define DT_DLL_VLUTIL __declspec( dllimport )
97 #endif
98 
99 #else /* Default -- Unix or Win32 static */
100 
101 #if defined _WIN32 || defined __CYGWIN__
102 #define DT_DLL_MTL
103 #define DT_DLL_MATRIX
104 #define DT_DLL_VL
105 #define DT_DLL_VLUTIL
106 #define DT_DLL_VLPROTIND
107 #define DT_DLL_NETCOMPAT
108 #else
109 #if __GNUC__ >= 4
110 
111 #define DT_DLL_MTL
112 #define DT_DLL_MATRIX
113 #define DT_DLL_VL
114 #define DT_DLL_VLUTIL __attribute__ ((visibility ("default")))
115 #define DT_DLL_VLPROTIND
116 #define DT_DLL_NETCOMPAT
117 #else
118 #define DT_DLL_MTL
119 #define DT_DLL_MATRIX
120 #define DT_DLL_VL
121 #define DT_DLL_VLUTIL
122 #define DT_DLL_VLPROTIND
123 #define DT_DLL_NETCOMPAT
124 #endif
125 #endif
126 
127 
128 #endif
129 
130 #ifdef _WIN32
131 #if __cplusplus
132 extern "C"
133 {
134  DT_DLL_VLUTIL int getopt(int argc, char** argv, char* opts);
135  extern DT_DLL_VLUTIL char* optarg;
136  extern DT_DLL_VLUTIL int optind;
137  extern DT_DLL_VLUTIL int opterr;
138 }
139 #endif //__cplusplus
140 #endif //_WIN32
141 
142 #if __cplusplus
143 #ifdef DtUSE_UTILITIES_NAMESPACE
144 namespace DtUSE_UTILITIES_NAMESPACE
145 {
146 #endif
147 #endif
148 typedef unsigned char DtU8;
150 
152 typedef unsigned short DtU16;
153 
154 #if DT_HAVE_64BIT_LONGS
155 
157 typedef unsigned int DtU32;
158 
160 typedef int DtInt32;
161 
162 #else
163 
165 typedef unsigned long DtU32;
166 
168 typedef long int DtInt32;
169 
170 #endif
171 
173 #if DT_HAVE_64BIT_LONGS
174 
176 typedef unsigned long DtU64;
177 
179 typedef long DtInt64;
180 
182 typedef DtU64 DtMachineSize;
183 
184 #else
185 
186 #ifdef _WIN32
187 
189 typedef unsigned _int64 DtU64;
190 
192 typedef _int64 DtInt64;
193 
194 #else
195 
197 typedef unsigned long long DtU64;
198 
200 typedef long long DtInt64;
201 
202 #endif
203 
204 #if _M_X64
205 typedef DtU64 DtMachineSize;
207 #else
208 typedef DtU32 DtMachineSize;
210 #endif
211 
212 #endif
213 
215 typedef char DtInt8;
216 
218 typedef short int DtInt16;
219 
221 typedef float DtFloat32;
222 
224 typedef double DtFloat64;
225 
227 typedef DtFloat64 DtReal;
228 
229 #if __cplusplus
230 #ifdef DtUSE_UTILITIES_NAMESPACE
231 }
232 #endif
233 #endif
234 
235 
unsigned long long DtU64
-------—— Network Layout for a long long (64 bytes unsigned)
Definition: vlMachineTypes.h:197
This file declares macros which specify the VR-Link version.
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:149
DtFloat64 DtReal
A 64 bit floating point value. This is the same as DtFloat64 bit is created for convenience.
Definition: vlMachineTypes.h:227
char DtInt8
An eight bit integer value.
Definition: vlMachineTypes.h:215
unsigned short DtU16
A 16 bit unsigned integer value.
Definition: vlMachineTypes.h:152
short int DtInt16
A sixteen bit integer value.
Definition: vlMachineTypes.h:218
long int DtInt32
A 32 bit integer value.
Definition: vlMachineTypes.h:168
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:165
float DtFloat32
A 32 bit floating point value.
Definition: vlMachineTypes.h:221
double DtFloat64
A 64 bit floating point value.
Definition: vlMachineTypes.h:224
long long DtInt64
A 64 bit integer value.
Definition: vlMachineTypes.h:200
DtU32 DtMachineSize
A type that represents the addressing size.
Definition: vlMachineTypes.h:209
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:121

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)