MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nerMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: nerMsg.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtNextEventRequestMsg_H_
13 #define DtNextEventRequestMsg_H_
14 
15 #ifdef DtTIME
16 
17 #include "timeTwoMsg.h"
18 
19 class DtConnectionMgr;
20 class DtNextEventRequestMsg;
21 typedef void (*DtNextEventRequestCb)(const DtNextEventRequestMsg& msg, void* usr);
22 
23 class DT_DLL_LRC DtNextEventRequestMsg : public DtTimeLookaheadMsg
24 {
25 public:
26 
28  DtNextEventRequestMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
31  DtNextEventRequestMsg(
32 #ifdef DtIFSPEC1516
33  rti1516::LogicalTime const & timeVal,
34  rti1516::LogicalTimeInterval const & lookaheadVal,
35 #elif defined(DtIFSPEC1516E)
36  rti1516e::LogicalTime const & timeVal,
37  rti1516e::LogicalTimeInterval const & lookaheadVal,
38 #else
39  RTI::FedTime const & timeVal,
40  RTI::FedTime const & lookaheadVal,
41 #endif
42  bool isWaitingForEvent,
43  bool isTimeAvailable,
44  unsigned long nerCycleVal,
45  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
46 
48  DtNextEventRequestMsg(const DtNetTimeLookaheadMsg* netRepMsg,
49  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
50 
52  virtual ~DtNextEventRequestMsg();
53 
55  virtual DtRtiMsg* clone(bool copy = true) const;
56 
57 public:
58 
60  static DtRtiMsg* create(const DtNetMsgHeader* initial,
61  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
62 
64  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
65 
67  static void addCallback(DtConnectionMgr *conn,
68  DtNextEventRequestCb cb, void *usr);
69  static void removeCallback(DtConnectionMgr *conn,
70  DtNextEventRequestCb cb, void *usr);
71 
72 protected:
73 
75  DtRtiMsgKind internalDtRtiMsgKind();
76 
77 };
78 
79 #endif
80 #endif
81 

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)