MAK Data Logger API Documentation for HLA
objectHistoryRepository.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2005 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: objectHistoryRepository.h,v $ $Revision: 130969 $ $State: Exp $
7 *********************************************************************/
8 
9 #pragma once
10 
11 #include "trafficAnalyzerPlugin.h"
12 
13 #include <omtReader/objectHistory.h>
14 #include <vl/exerciseConn.h>
15 #include <vl/hStateMsg.h>
16 #include <vl/refGenList.h>
17 
18 #include <QtCore/QObject>
19 
20 #include <map>
21 
22 class DtDatatypeManager;
23 
24 // Stores values for all known objects. This can be used to retrieve history information on any
25 // currently active object in an exercise.
27 {
28 Q_OBJECT
29 
30 public:
31 
34 
36  virtual ~DtObjectHistoryRepository();
37 
39  virtual void init(DtExerciseConn* ex);
40 
43  virtual DtObjectHistory* discoverObject(DtReflectedGenericObject* obj);
44 
46  virtual void removeObject(DtReflectedGenericObject* obj);
47 
50  virtual void reflectObjectUpdate(const DtStateMsg& msg, DtHlaObject* obj);
51 
53  virtual DtObjectHistory* getObjectHistoryRepositoryRep(DtString objectName);
54 
55 signals:
56 
57  // Emits whenever any object is updated.
58  void updatedObjectRepository(DtObjectHistory*);
59 
60 protected:
61 
62  // Copy constructor
64 
65  // Assignment Operator
67 
68 
69 protected:
70  std::map<DtString,DtObjectHistory*> myObjectHistories;
73 
74 };

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)