VR-Link API Documentation for DIS
dAddPassActPub.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/dObjPub.h>
15 #include <vl/addPassActivitiesSR.h>
16 
19 
24 {
25 public:
26 
28  typedef DtAdditionalPassiveActivitiesRepository* (*DtStateRepCreator)();
29 
30 public:
31 
34  DtExerciseConn* conn, const DtObjectId& id = DtObjectId::defaultId() );
35 
38  const DtObjectId& id = DtObjectId::defaultId() );
39 
42  const DtObjectId& id = DtObjectId::defaultId() );
43 
46 
48  virtual DtAdditionalPassiveActivitiesRepository* apaStateRep();
50 
52  virtual void tick();
53 
55  virtual void forceUpdate();
56 
58  virtual const DtObjectId& id() const;
59  virtual const DtObjectId& localId() const;
60 
62  virtual const DtGlobalObjectDesignator& globalId() const;
63 
64 public:
65 
67  static void setStateRepCreator( DtStateRepCreator creator );
68  static DtStateRepCreator stateRepCreator();
69 
70  static void setClassDfltTimeThreshold( DtTime threshold );
71 
72 protected:
73 
75  void init( const char* name, const DtEntityIdentifier& id );
76 
80 
84 
85 protected:
86 
90 
91 protected:
92 
93  static DtStateRepCreator theStateRepCreator;
95  static bool theClassDfltIsSetFlag;
96  char* myName;
97 
98 };
99 
101 {
102  return static_cast<DtAdditionalPassiveActivitiesRepository*>( myStateRep );
103 }
104 
105 #endif

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)