MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setSwitches.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: setSwitches.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSetFederationSwitchesInteraction_H_
13 #define DtSetFederationSwitchesInteraction_H_
14 
15 #ifdef DtMOM
16 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
17 
18 #include "rtiMsConfig.h"
19 #include "internalTypes.h"
20 #include "mInteraction.h"
21 #include <vlutil/vlList.h>
22 
23 class DtMomInterCbMgr;
24 class DtSetFederationSwitchesInteraction;
25 typedef void (*DtSetFederationSwitchesInteractionCb)
26  (const DtSetFederationSwitchesInteraction& inter, void* usr);
27 
28 class DT_DLL_LRC DtSetFederationSwitchesInteraction :
29  public DtServiceInteraction
30 {
31 public:
32 
34  DtSetFederationSwitchesInteraction();
35 
37  virtual ~DtSetFederationSwitchesInteraction();
38 
40  DtSetFederationSwitchesInteraction(
41  const DtSetFederationSwitchesInteraction& orig);
42 
44  DtSetFederationSwitchesInteraction& operator=(
45  const DtSetFederationSwitchesInteraction& orig);
46 
49  virtual const DtPhvps& phvps();
50 
53  virtual bool setFromPhvps(const DtPhvps& phvps);
54 
56  virtual bool autoProvide() const;
57  virtual void setAutoProvide(bool data);
58 
60  virtual bool receivedAutoProvide() const;
61 
62 public:
64  static DtServiceInteraction* create();
65 
67  static void addCallback(DtMomInterCbMgr* callBackManager,
68  DtSetFederationSwitchesInteractionCb cb, void* usr);
69  static void removeCallback(DtMomInterCbMgr* callBackManager,
70  DtSetFederationSwitchesInteractionCb cb, void* usr);
71 
72 protected:
73 
75  virtual void encodeAutoProvide(
76  const DtMomInteraction& data,
77  DtPhvps* parameters,
78  DtParameterHandle parameterHandle);
79 
81  virtual void decodeAutoProvide(
82  DtMomInteraction* data,
83  const DtPhvps& parameters,
84  int index);
85 
86 public:
87  static const char* theInteractionName;
88 
89 protected:
91  bool myAutoProvide;
92  bool myReceivedAutoProvide;
93 
94  const char *AUTO_PROVIDE_PARAMETER_NAME;
95 
96 };
97 
98 #endif
99 #endif
100 #endif

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)