MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simpleTimeInteraction13dlc.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: simpleTimeInteraction13dlc.h,v $ $Revision: 1.1 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef _INTERACTIONDEFINITION_
9 #define _INTERACTIONDEFINITION_
10 
11 // A simple container class for an interaction event
12 #include <map>
13 #include <string>
14 #include "RTI13.h"
15 
16 
17 
18 // An interactionEvent object encapsulates the contents of a
19 // receiveInteraction callback. Note, that not all contents of the
20 // callback are stored, only those required for our specific application.
21 
22 // That information can then be stored and later retrieved to be processed.
23 class interactionEvent
24 {
25  public:
26 
28 
29  interactionEvent(rti13::InteractionClassHandle theHandle,
30  const rti13::ParameterHandleValuePairSet& pvhps,
31  const rti13::FedTime& fedTime,
32  const char* tag,
33  interaction_type theInteractionType = Unknown
34  );
35 
36  // Constructor for an interaction with no reported FedTime.
37  interactionEvent(rti13::InteractionClassHandle theHandle,
38  const rti13::ParameterHandleValuePairSet& pvhps,
39  const char* tag,
40  interaction_type theInteractionType = Unknown
41  );
42 
44 
45  rti13::InteractionClassHandle getHandle();
46 // const std::map<unsigned long, std::string>& getPhvps();
47  bool isFireInteraction();
48  bool isDetonateInteraction();
49  const std::string& getFedTime();
50  const std::string& getTag();
51  rti13::EventRetractionHandle getRetractionHandle();
53 
54 private:
55  rti13::InteractionClassHandle myHandle;
56  std::map<unsigned long, std::string> myPhvps;
57  std::string myFedTime;
58  std::string myTag;
60 
61 };
62 
63 
64 class requestUnit
65 {
66  public:
67  requestUnit( rti13::ObjectHandle,
68  const rti13::AttributeHandleSet& attrHandSet );
69 
70  ~requestUnit();
71 
73  const rti13::ObjectHandle getHandle();
74 
75 private:
77  rti13::ObjectHandle myHandle;
78 };
79 
80 
81 
82 
83 
84 #endif
std::set< AttributeHandle > AttributeHandleSet
Definition: Typedefs.h:35
int getTypeOfInteraction()
const std::string & getTag()
rti13::ObjectHandle myHandle
Definition: simpleTimeInteraction13dlc.h:77
const rti13::AttributeHandleSet & myAttrHandleSet
Definition: simpleTimeInteraction13dlc.h:76
Definition: simpleTimeInteraction13.h:27
Definition: simpleTimeInteraction13.h:23
int myInteractionType
Definition: simpleTimeInteraction13.h:59
RTI::EventRetractionHandle getRetractionHandle()
const RTI::AttributeHandleSet & getAttrHandSet()
const std::string & getFedTime()
const RTI::ObjectHandle getHandle()
std::map< unsigned long, std::string > myPhvps
Definition: simpleTimeInteraction13.h:56
std::string myTag
Definition: simpleTimeInteraction13.h:58
std::string myFedTime
Definition: simpleTimeInteraction13.h:57
interaction_type
Definition: simpleTimeInteraction13.h:27
requestUnit(RTI::ObjectHandle, const RTI::AttributeHandleSet &attrHandSet)
Definition: simpleTimeInteraction13.h:27
interactionEvent(RTI::InteractionClassHandle theHandle, const RTI::ParameterHandleValuePairSet &pvhps, const RTI::FedTime &fedTime, const char *tag, interaction_type theInteractionType=Unknown)
rti13::InteractionClassHandle myHandle
Definition: simpleTimeInteraction13dlc.h:55
Definition: simpleTimeInteraction13.h:64
bool isFireInteraction()
RTI::InteractionClassHandle getHandle()
Definition: simpleTimeInteraction13.h:27
bool isDetonateInteraction()

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)