MAK Data Logger API Documentation for HLA
lgrCommandDispatcher.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrCommandDispatcher_H_
10 #define lgrCommandDispatcher_H_
11 
12 #include "lgrCore.h"
13 #include "absoluteTime.h"
14 #include "collectors.h"
15 #include "lgrCommandQueue.h"
16 #include "virtualConstructor.h"
17 
18 #include <vlutil/vlSmartPointers.h>
19 #include <vlutil/vlMutex.h>
20 
21 namespace MAKLogger
22 {
23  class DtLogger;
24  class DtLgrSharedData;
25  class DtLgrCmdDescriptor;
26  class DtAnnotationManager;
27  class DtRuntimeCommandFactory;
28 
34  {
35  public:
38 
39 
40  virtual ~DtCommandDispatcher();
41 
58  virtual bool addResponseListener(DtResponseQueueSP listener);
59 
73  virtual void removeResponseListener(DtResponseQueueSP listener);
74 
76  virtual void sendResponse(DtResponse response);
77 
79  virtual void addCommand(const DtCommand& command);
80 
82  void moveQueuedCommands(DtCollector< DtCommand>& collector);
83 
84  private:
88  DtCommandDispatcher& operator=( const DtCommandDispatcher& src );
89 
90  public:
92  virtual DtAbsoluteTime tick();
93 
94  protected:
95  DtMutex myListenerMutex;
99  };
100 
101  typedef DtBoost::shared_ptr<DtCommandDispatcher> DtCommandDispatcherSP;
102 
103 }
104 
105 #endif
106 

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)