![]() |
VR-Link API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00008 #pragma once 00009 00010 #if VXWORKS 00011 #include <vxworks.h> 00012 #endif 00013 00014 #ifndef VLCONFIG_INCLUDED_H_ 00015 #include "vlConfig.h" 00016 #endif 00017 #include "vlVersion.h" 00018 00019 /* defined(__cplusplus), not __cplusplus, 00020 * because __SUNPRO_CC defines it to be empty */ 00021 #if DT_HAVE_STD_H && defined(__cplusplus) 00022 #include <std.h> 00023 #endif 00024 00025 #include <sys/types.h> 00026 00030 #define DtBoolean bool 00031 00035 #define DtFalse false 00036 00040 #define DtTrue true 00041 00042 /* Windows requires extra work to export from DLLs */ 00043 #if DT_NEED_DLL_DECLARATIONS 00044 00045 #ifdef DT_DLL_MTL 00046 #undef DT_DLL_MTL 00047 #define DT_DLL_MTL __declspec( dllexport ) 00048 #else 00049 #define DT_DLL_MTL __declspec( dllimport ) 00050 #endif 00051 00052 #ifdef DT_DLL_MATRIX 00053 #undef DT_DLL_MATRIX 00054 #define DT_DLL_MATRIX __declspec( dllexport ) 00055 #else 00056 #define DT_DLL_MATRIX __declspec( dllimport ) 00057 #endif 00058 00059 #ifdef DT_DLL_VL 00060 #undef DT_DLL_VL 00061 #define DT_DLL_VL __declspec( dllexport ) 00062 #else 00063 #define DT_DLL_VL __declspec( dllimport ) 00064 #endif 00065 00066 #ifdef DT_DLL_VLPROTIND 00067 #undef DT_DLL_VLPROTIND 00068 #define DT_DLL_VLPROTIND __declspec( dllexport ) 00069 #else 00070 #define DT_DLL_VLPROTIND __declspec( dllimport ) 00071 #endif 00072 00073 #ifdef DT_DLL_NETCOMPAT 00074 #undef DT_DLL_NETCOMPAT 00075 #define DT_DLL_NETCOMPAT __declspec( dllexport ) 00076 #else 00077 #define DT_DLL_NETCOMPAT __declspec( dllimport ) 00078 #endif 00079 00080 #ifdef DT_DLL_VLUTIL 00081 #undef DT_DLL_VLUTIL 00082 #define DT_DLL_VLUTIL __declspec( dllexport ) 00083 #else 00084 #define DT_DLL_VLUTIL __declspec( dllimport ) 00085 #endif 00086 00087 #else /* Default -- Unix or Win32 static */ 00088 00089 #if defined _WIN32 || defined __CYGWIN__ 00090 #define DT_DLL_MTL 00091 #define DT_DLL_MATRIX 00092 #define DT_DLL_VL 00093 #define DT_DLL_VLUTIL 00094 #define DT_DLL_VLPROTIND 00095 #define DT_DLL_NETCOMPAT 00096 #else 00097 #if __GNUC__ >= 4 00098 #define DT_DLL_MTL __attribute__ ((visibility ("default"))) 00099 #define DT_DLL_MATRIX __attribute__ ((visibility ("default"))) 00100 #define DT_DLL_VL __attribute__ ((visibility ("default"))) 00101 #define DT_DLL_VLUTIL __attribute__ ((visibility ("default"))) 00102 #define DT_DLL_VLPROTIND __attribute__ ((visibility ("default"))) 00103 #define DT_DLL_NETCOMPAT __attribute__ ((visibility ("default"))) 00104 #else 00105 #define DT_DLL_MTL 00106 #define DT_DLL_MATRIX 00107 #define DT_DLL_VL 00108 #define DT_DLL_VLUTIL 00109 #define DT_DLL_VLPROTIND 00110 #define DT_DLL_NETCOMPAT 00111 #endif 00112 #endif 00113 00114 #endif 00115 00116 #ifdef _WIN32 00117 #if __cplusplus 00118 extern "C" 00119 { 00120 DT_DLL_VLUTIL int getopt(int argc, char** argv, char* opts); 00121 extern DT_DLL_VLUTIL char* optarg; 00122 extern DT_DLL_VLUTIL int optind; 00123 extern DT_DLL_VLUTIL int opterr; 00124 } 00125 #endif //__cplusplus 00126 #endif //_WIN32 00127 00128 #if __cplusplus 00129 #ifdef DtUSE_UTILITIES_NAMESPACE 00130 namespace DtUSE_UTILITIES_NAMESPACE 00131 { 00132 #endif 00133 #endif 00134 00135 typedef unsigned char DtU8; 00136 00138 typedef unsigned short DtU16; 00139 00140 #if DT_HAVE_64BIT_LONGS 00141 00143 typedef unsigned int DtU32; 00144 00146 typedef int DtInt32; 00147 00148 #else 00149 00151 typedef unsigned long DtU32; 00152 00154 typedef long int DtInt32; 00155 00156 #endif 00157 00159 #if DT_HAVE_64BIT_LONGS 00160 00162 typedef unsigned long DtU64; 00163 00165 typedef long DtInt64; 00166 00168 typedef DtU64 DtMachineSize; 00169 00170 #else 00171 00173 typedef DtU32 DtMachineSize; 00174 00175 #ifdef _WIN32 00176 00178 typedef unsigned _int64 DtU64; 00179 00181 typedef _int64 DtInt64; 00182 00183 #else 00184 00186 typedef unsigned long long DtU64; 00187 00189 typedef long long DtInt64; 00190 00191 #endif 00192 #endif 00193 00195 typedef char DtInt8; 00196 00198 typedef short int DtInt16; 00199 00201 typedef float DtFloat32; 00202 00204 typedef double DtFloat64; 00205 00207 typedef DtFloat64 DtReal; 00208 00209 #if __cplusplus 00210 #ifdef DtUSE_UTILITIES_NAMESPACE 00211 } 00212 #endif 00213 #endif 00214 00215