MAK RTIspy API Documentation for HLA Evolved
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
libsrc
RTI
ambObsList.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: ambObsList.h,v $ $Revision: 1.10 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DtRtiAmbObserverList_H_
13
#define DtRtiAmbObserverList_H_
14
15
#include "
rtiMsConfig.h
"
16
#include <vlutil/vlHashlist.h>
17
18
class
DtRtiAmbassadorObserver;
19
20
class
DT_DLL_LRC
DtRtiAmbObserverList
21
{
22
public
:
23
24
DtRtiAmbObserverList
();
25
virtual
~
DtRtiAmbObserverList
();
26
27
virtual
DtRtiAmbassadorObserver* first()
const
;
28
29
virtual
void
addObserver(
30
MAKRti::DtString name, DtRtiAmbassadorObserver* observer);
31
virtual
DtRtiAmbassadorObserver* removeObserver(MAKRti::DtString name);
32
33
protected
:
34
35
MAKRti::DtHashlist
myHashedObservers
;
36
MAKRti::DtIntrusiveList
myObservers
;
37
};
38
39
inline
DtRtiAmbassadorObserver*
DtRtiAmbObserverList::first
()
const
40
{
41
return
myObservers
.first() ?
42
(DtRtiAmbassadorObserver*)
myObservers
.first()->data() : NULL;
43
}
44
45
#endif
Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (
www.mak.com
)