VR-Link API Documentation for DIS
dPropNoisePub.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/propulsionNoiseSR.h>
16 
19 
24 {
25 public:
26 
28  typedef DtPropulsionNoiseStateRepository* (*DtStateRepCreator)();
29 
30 public:
31 
34  DtExerciseConn* conn, const DtObjectId& id = DtObjectId::defaultId() );
35 
38  const DtObjectId& id = DtObjectId::defaultId() );
39 
41  DtPropulsionNoisePublisher( DtExerciseConn* conn, const char* name,
42  const DtObjectId& id = DtObjectId::defaultId() );
43 
45  virtual ~DtPropulsionNoisePublisher();
46 
48  virtual DtPropulsionNoiseStateRepository* propNoiseStateRep();
49  virtual DtPropulsionNoiseStateRepository* psr();
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 
79 
82 
83 protected:
84 
88 
89 protected:
90 
91  static DtStateRepCreator theStateRepCreator;
93  static bool theClassDfltIsSetFlag;
94  char* myName;
95 
96 };
97 
99 {
100  return static_cast<DtPropulsionNoiseStateRepository*>( myStateRep );
101 }
102 
103 #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)