MAK RTIspy API Documentation for HLA 1516
 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 #pragma once
13 
14 #if defined (DtMOM) && (defined(DtIFSPEC1516) || defined(DtIFSPEC1516E) || defined(DtIFSPEC1516_2025))
15 
16 #include "rtiMsConfig.h"
17 #include "internalTypes.h"
18 #include "mInteraction.h"
19 #include <vlutil/vlList.h>
20 
21 class DtMomInterCbMgr;
22 class DtSetFederationSwitchesInteraction;
23 typedef void (*DtSetFederationSwitchesInteractionCb) (const DtSetFederationSwitchesInteraction& inter, void* usr);
24 
25 class DT_DLL_LRC DtSetFederationSwitchesInteraction : public DtServiceInteraction
26 {
27 public:
28 
30  DtSetFederationSwitchesInteraction();
31 
33  virtual ~DtSetFederationSwitchesInteraction();
34 
36  DtSetFederationSwitchesInteraction(const DtSetFederationSwitchesInteraction& orig);
37 
39  DtSetFederationSwitchesInteraction& operator=(const DtSetFederationSwitchesInteraction& orig);
40 
44  virtual const DtPhvps& phvps();
45 
48  virtual bool setFromPhvps(const DtPhvps& phvps);
49 
51  virtual void reset();
52 
54 
55  virtual bool autoProvide() const;
56  virtual void setAutoProvide(bool data);
57  virtual bool autoProvideIsSet() const;
58  virtual const char* autoProvideName() const;
60 
61 public:
63  static DtServiceInteraction* create();
64 
66 
67  static void addCallback(DtMomInterCbMgr* callBackManager, DtSetFederationSwitchesInteractionCb cb, void* usr);
68  static void removeCallback(DtMomInterCbMgr* callBackManager, DtSetFederationSwitchesInteractionCb cb, void* usr);
70 
71 public:
72  static const char* theInteractionName;
73 
74 protected:
75 
77  virtual void encodeSwitch(const char* parameterName, bool switchValue);
78 
81  virtual bool decodeSwitch(const DtPhvps& parameters, int index, bool& switchValue);
82 
84  virtual void setSwitch(DtParameterHandle currentHandle, bool switchValue);
85 
87  virtual void handleDecodeError(DtParameterHandle currentHandle);
88 
89 protected:
90 
92  bool myAutoProvide;
93  bool myAutoProvideIsSet;
94 
95 };
96 
97 #endif
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
Definition: pHandValSet.h:38
The declaration of internal types.
DtHandle DtParameterHandle
Definition: internalTypes.h:56

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)