MAK RTIspy API Documentation for HLA 1.3
momFactory.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: momFactory.h,v $ $Revision: 1.12 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
10 
11 
12 #ifndef DtMomInteractionFactory_H_
13 #define DtMomInteractionFactory_H_
14 
15 #include "mInteraction.h"
16 #include <vlutil/vlHashlist.h>
17 
19 
20 typedef DtMomInteraction *(*DtMomInteractionCreator)();
21 
22 class DT_DLL_LRC DtMomInteractionFactory
23 {
24 public:
25 
27  DtMomInteractionFactory(DtHandleMapper* handleMapper);
28 
30  virtual ~DtMomInteractionFactory();
31 
33  virtual DtMomInteraction* create(DtInteractionClassHandle handle);
34 
36  virtual int badMappingCount() const;
37 
38 protected:
39 
41  virtual void populateMom();
42 
45  virtual bool map(const char* name, DtMomInteractionCreator function);
46 
48  virtual void map(DtInteractionClassInfo* info,
49  DtMomInteractionCreator function);
50 
52  virtual void map(DtInteractionClassHandle handle,
53  DtMomInteractionCreator function);
54 
55 protected:
56 
58  MAKRti::DtHashList *myMap;
59 
61  DtHandleMapper* myHandleMapper;
62 
64  int myBadMappingCount;
65 
66 private:
67 
69  DtMomInteractionFactory(const DtMomInteractionFactory& orig);
70 
72  DtMomInteractionFactory& operator=(const DtMomInteractionFactory& orig);
73 };
74 
75 #endif
76 #endif

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)