MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
simpletime
simpleTimeInteraction13.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: simpleTimeInteraction13.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 "
RTI.hh
"
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
27
enum
interaction_type
{
Unknown
,
FireType
,
DetonationType
};
28
29
interactionEvent
(
RTI::InteractionClassHandle
theHandle,
30
const
RTI::ParameterHandleValuePairSet
& pvhps,
31
const
RTI::FedTime
& fedTime,
32
const
char
* tag,
33
interaction_type
theInteractionType =
Unknown
34
);
35
36
// Constructor for an interaction with no reported FedTime.
37
interactionEvent
(
RTI::InteractionClassHandle
theHandle,
38
const
RTI::ParameterHandleValuePairSet
& pvhps,
39
const
char
* tag,
40
interaction_type
theInteractionType =
Unknown
41
);
42
43
~interactionEvent
();
44
45
RTI::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
RTI::EventRetractionHandle
getRetractionHandle
();
52
int
getTypeOfInteraction
();
53
54
private
:
55
RTI::InteractionClassHandle
myHandle
;
56
std::map<unsigned long, std::string>
myPhvps
;
57
std::string
myFedTime
;
58
std::string
myTag
;
59
int
myInteractionType
;
60
61
};
62
63
64
class
requestUnit
65
{
66
public
:
67
requestUnit
(
RTI::ObjectHandle
,
68
const
RTI::AttributeHandleSet
& attrHandSet );
69
70
~requestUnit
();
71
72
const
RTI::AttributeHandleSet
&
getAttrHandSet
();
73
const
RTI::ObjectHandle
getHandle
();
74
75
private
:
76
const
RTI::AttributeHandleSet
&
myAttrHandleSet
;
77
RTI::ObjectHandle
myHandle
;
78
};
79
80
81
82
#endif
Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (
www.mak.com
)