MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
21 {
22 public:
23 
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
MAKRti::DtIntrusiveList myObservers
Definition: ambObsList.h:36
Definition: ambObsList.h:20
virtual DtRtiAmbassadorObserver * first() const
Definition: ambObsList.h:39
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
MAKRti::DtHashlist myHashedObservers
Definition: ambObsList.h:35

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)