MAK RTIspy API Documentation for HLA 1.3
serNextEvt.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: serNextEvt.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtNextEventRequestInteraction_H_
14 #define DtNextEventRequestInteraction_H_
15 
16 #include "rtiMsConfig.h"
17 #include "internalTypes.h"
18 #include "mInteraction.h"
19 #include <vlutil/vlList.h>
20 
21 class DtMomInterCbMgr;
22 class DtNextEventRequestInteraction;
23 typedef void (*DtNextEventRequestInteractionCb)
24  (const DtNextEventRequestInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtNextEventRequestInteraction :
27  public DtServiceInteraction
28 {
29 public:
30 
32  DtNextEventRequestInteraction();
33 
35  virtual ~DtNextEventRequestInteraction();
36 
38  DtNextEventRequestInteraction(
39  const DtNextEventRequestInteraction& orig);
40 
42  DtNextEventRequestInteraction& operator=(
43  const DtNextEventRequestInteraction& orig);
44 
47  virtual const DtPhvps& phvps();
48 
51  virtual bool setFromPhvps(const DtPhvps& phvps);
52 
55 #ifdef DtIFSPEC1516
56  virtual bool getFedtime(rti1516::LogicalTime & time) const;
57  virtual void setFedtime(rti1516::LogicalTime const & time);
58 #elif defined(DtIFSPEC1516E)
59  virtual bool getFedtime(rti1516e::LogicalTime & time) const;
60  virtual void setFedtime(rti1516e::LogicalTime const & time);
61 #else
62  virtual bool getFedtime(RTI::FedTime & time) const;
63  virtual void setFedtime(RTI::FedTime const & time);
64 #endif
65 
66 public:
68  static DtServiceInteraction* create();
69 
71  static void addCallback(DtMomInterCbMgr* callBackManager,
72  DtNextEventRequestInteractionCb cb, void* usr);
73  static void removeCallback(DtMomInterCbMgr* callBackManager,
74  DtNextEventRequestInteractionCb cb, void* usr);
75 
76 protected:
77 
79  virtual void encodeFedtime(
80  const DtMomInteraction& data,
81  DtPhvps* parameters,
82  DtParameterHandle parameterHandle);
83 
85  virtual void decodeFedtime(
86  DtMomInteraction* data,
87  const DtPhvps& parameters,
88  int index);
89 
90 public:
91  static const char* theInteractionName;
92 
93 protected:
95 
96  DtMomNetParameter* myEncodedTime;
97  bool myReceivedEncodedTime;
98  const char *FEDTIME_PARAMETER_NAME;
99 
100 };
101 
102 #endif
103 #endif

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)