MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
trafficAnalyzer
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: 134697 $ $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/stateMsgHLA.h>
16
#include <vl/reflectedGenericObjectList.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.
26
class
DT_DLL_TRFCANLZR
DtObjectHistoryRepository
:
public
QObject
27
{
28
Q_OBJECT
29
30
public
:
31
33
DtObjectHistoryRepository
(
DtDatatypeManager
& dm);
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
63
DtObjectHistoryRepository
(
DtObjectHistoryRepository
& orig);
64
65
// Assignment Operator
66
DtObjectHistoryRepository
& operator=(
DtObjectHistoryRepository
& rhs);
67
68
69
protected
:
70
std::map<DtString,DtObjectHistory*>
myObjectHistories
;
71
DtExerciseConn
*
myExerciseConn
;
72
DtDatatypeManager
&
myDatatypeManager
;
73
74
};
Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)