MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
makRti.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: makRti.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
9 // This file contains extensions to the standard RTI interface
10 // that are supported by the MAK RTI.
11 
12 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
13 #include "RTI/RTI1516.h"
14 #else
15 #ifdef DtIFSPEC13DLC
16 #include "RTI13.h"
17 #define RTI rti13
18 #else
19 #include "RTI.hh"
20 #endif
21 #endif
22 
23 namespace MAKRti
24 {
25  class DtString;
26 }
27 
28 
30 void RTI_EXPORT checkVersion(const MAKRti::DtString& version);
31 
32 
33 // Dynamically set the RTI notify level
34 // 0 - Fatal, 1 - Warning, 2 - Info, 3 - Verbose, 4+ - Debug
35 #ifdef DtIFSPEC1516
36 void RTI_EXPORT setRtiNotifyLevel(rti1516::RTIambassador* amb, int level);
37 #elif defined(DtIFSPEC1516E)
39 #else
40 void RTI_EXPORT setRtiNotifyLevel(RTI::RTIambassador* amb, int level);
41 #endif
42 
45 
48 
49 // Depreciated: Only for best effort
50 // Returns a file descriptor on which data will be present whenever
51 // there is incoming data waiting to be read by the RTI. This can be
52 // used in a call to select to avoid calling RTI::tick until there
53 // is actually data waiting. Returns -1 if no such file descriptor.
54 #ifdef DtIFSPEC1516
55 int RTI_EXPORT DtReadFileDescriptor(rti1516::RTIambassador* amb);
56 #elif defined(DtIFSPEC1516E)
58 #else
59 int RTI_EXPORT DtReadFileDescriptor(RTI::RTIambassador* amb);
60 #endif
61 
62 // Returns a file descriptor on which data will be present for the given
63 // transport type whenever there is incoming data waiting to be read by the RTI. This can be
64 // The file descriptors can be used in a call to select to avoid
65 // calling RTI::tick until there is actually data waiting.
66 // Returns -1 if no such file descriptor.
67 //
68 // (Note: when running in asynchronous mode (RTI_asynchronousIO = 1)
69 // this function will return -1 on windows, use DtReadFileEvent instead.
70 // On unix it will return the file descriptor of the pipe used for
71 // inter-thread communication instead of the socket file descriptor.)
72 #ifdef DtIFSPEC1516
73 int RTI_EXPORT DtReadFileDescriptor(rti1516::RTIambassador* amb,
74  rti1516::TransportationType transport);
75 #elif defined(DtIFSPEC1516E)
78 #else
79 int RTI_EXPORT DtReadFileDescriptor(RTI::RTIambassador* amb,
80  RTI::TransportType transport);
81 #endif
82 
83 
84 #if defined(_WIN32)
85 // Returns a WIN32 event handle that signals when data is present for
86 // the given transport type. It can be used in calls such as
87 // WaitForSingleObject to avoid calling RTI::Tick until there is
88 // data waiting. When operating synchronously the event returned
89 // is based upon the socket specified by transport. In asynchronous
90 // mode it returns the event used for inter-thread signalling
91 // regardless of the transport type.
92 #include "winsock2.h"
93 #ifdef DtIFSPEC1516
94 WSAEVENT RTI_EXPORT DtReadFileEvent(rti1516::RTIambassador* amb,
95  rti1516::TransportationType transport);
96 #elif defined(DtIFSPEC1516E)
97 WSAEVENT RTI_EXPORT DtReadFileEvent(rti1516e::RTIambassador* amb,
99 #else
100 WSAEVENT RTI_EXPORT DtReadFileEvent(RTI::RTIambassador* amb,
101  RTI::TransportType transport);
102 #endif
103 
104 #endif

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)