VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
echelonIdTable.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: echIdTable.h,v $ $Revision: 1.6 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef DtEchelonIdTable_H_
16 #define DtEchelonIdTable_H_
17 
18 #include <vlutil/vlHashlist.h>
19 #include <vl/hostStructs.h>
21 
22 class DtVrfObjectManager;
23 class DtSimMessage;
24 class DtVrfObject;
25 
27 
31 
34 {
35 private:
41  DtEchelonIdTable& operator=(const DtEchelonIdTable& orig);
42 
43 public:
44  DtEchelonIdTable(DtVrfObjectManager* objectManager);
45  virtual ~DtEchelonIdTable();
46 
49  void emptyHashList();
50 
52  virtual bool init();
53 
55  virtual const DtEntityIdentifier& lookupEchelonId(const DtString& echelonString) const;
56 
58  virtual const DtString& lookupEntityId(const DtEntityIdentifier& entityId) const;
59 
63  virtual void addEntry(const DtEntityIdentifier& entityId, const DtString& echelonId);
64 
66  virtual bool removeEntry(const DtEntityIdentifier& entityId);
67 
73  virtual void processVrfObjectAdded(DtVrfObject* vrfObject);
74 
76  virtual bool removeEntry(const DtString& echelonId);
77 
78  static void vrfObjectEchelonIdChanged(DtVrfObject * obj, DtVrfObjectPredicateEvaluator* predicateEval,
79  void * usr);
80 
81  static void vrfObjectAboutToBeRemovedCallback(DtVrfObject *vrfObject, void* usr);
82 
83  static void vrfObjectAdded(DtVrfObject* vrfObject, void* usr);
84 
85 protected:
87  virtual void processVrfObjectEchelonIdChanged(DtVrfObject * obj);
88 
89  virtual void processObjectAboutToBeRemoved(DtVrfObject *vrfObject);
90 
93  virtual void localAddEntry(const DtEntityIdentifier& entityId, const DtString& echelonId);
94 
95 protected:
97 
99  DtHashlist myEchelonIdHashlist;
101  DtHashlist myEntityIdHashlist;
102 };
103 
104 #endif

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)