VR-Forces 4.2 Class Documentation
DtVrfScenarioRemapFunctions.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrfScenarioRemapFunction.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
17 #include <vrvUtil/DtVirtualBaseClass.h>
18 
19 #include <vrfutil/scenario.h>
20 
21 class DtSimulationAddress;
22 class QWidget;
23 
24 namespace makVrv
25 {
26  class DtDe;
27 }
28 
29 namespace makVrf
30 {
31  class DtRemappingDialog;
32 
34  {
35  public:
36 
38  DtVrfScenarioRemapFunction(makVrv::DtDe& de, QWidget* parent);
39 
41  virtual ~DtVrfScenarioRemapFunction();
42 
43  public:
44  virtual DtRemappingFcn remappingFunction() = 0;
45 
46  protected:
47  makVrv::DtDe& myDe;
48  };
49 
51  {
52  public:
53  virtual DtVrfScenarioRemapFunction* create(makVrv::DtDe&, QWidget* parent) = 0;
54  };
55 
56  class DT_DLL_VRFGUICOREQT DtVrfScenarioRemapFactory : public makVrv::DtVirtualBaseClass
57  {
58  public:
60  DtVrfScenarioRemapFactory(makVrv::DtDe&);
61 
62  virtual ~DtVrfScenarioRemapFactory();
63 
65  static DtVrfScenarioRemapFactory& instance(makVrv::DtDe& de);
66 
70  virtual DtVrfScenarioRemapFunction* createRemapFunction(const std::string&, QWidget* parent);
71 
73  virtual void addRemappingFunction(const std::string&, DtVrfScenarioRemapFunctionCreator*);
74  virtual void removeRemappingFunction(const std::string&);
75 
76  protected:
77  typedef std::map<std::string, DtVrfScenarioRemapFunctionCreator*> DtRemappingCreatorMap;
78 
80  makVrv::DtDe& myDe;
81  };
82 
84  {
85  public:
87  DtRemapMissingBackends(makVrv::DtDe& de, QWidget* parent);
88 
90  virtual ~DtRemapMissingBackends();
91 
92  public:
93  virtual DtRemappingFcn remappingFunction();
94 
95  protected:
96  static bool remapMissingBackends(DtBackendMap* map, void* usr);
97  virtual bool processRemapMissingBackends(DtBackendMap* map);
98 
99  virtual DtRemappingDialog* createRemappingDialog(makVrv::DtDe&, DtBackendMap*, QWidget*);
100 
101  protected:
103  };
104 
106  {
107  public:
108  virtual DtVrfScenarioRemapFunction* create(makVrv::DtDe&, QWidget* parent);
109  };
110 
112  {
113  public:
115  DtAutoRemapMissingBackends(makVrv::DtDe& de, QWidget* parent);
116 
118  virtual ~DtAutoRemapMissingBackends();
119 
120  public:
121  virtual DtRemappingFcn remappingFunction();
122 
123  protected:
124  static bool autoRemapMissingBackends(DtBackendMap* map, void* usr);
125  virtual bool processAutoRemapMissingBackends(DtBackendMap* map);
126 
128  virtual void getRemappingAddress(DtSimulationAddress& remapAddress);
129  };
130 
132  {
133  public:
134  virtual DtVrfScenarioRemapFunction* create(makVrv::DtDe&, QWidget* parent);
135  };
136 }

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)