VR-Forces 4.1 Class Documentation
DtWindowFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtWindowFactory.h,v $ $Revision: 1.23 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtWindowFactory_H_
14 #define DtWindowFactory_H_
15 
16 #include <vrvCore/vrvCore.h>
19 
20 namespace makVrv
21 {
22  class DtWindow;
23  class DtWindowCreator;
24  class DtDe;
25 
30  {
31 
32  typedef DtWindow* (*DtWindowCreatorFunction)(DtDe&, DtWindowConfiguration&);
33 
34  public:
35 
38  static DtWindowFactory& instance(DtDe& de);
39 
41  ~DtWindowFactory();
42 
44  DtWindow* createWindow(DtDe& de,DtWindowConfiguration& wc);
45 
47  void setCreator(int index, DtWindowCreator* creator);
48 
49  protected:
50 
53 
54  protected:
55 
56  typedef std::map<int, DtWindowCreator*> CreatorFunctionMap;
58 
59  };
60 }
61 
62 #endif
63 
64 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)