#include <NamedFactory.h>
Public Member Functions | |
| virtual | ~NamedFactory () |
| void | Register (NamedProxy *proxy, std::string name) |
| NamedProxy * | GetProxy (std::string name) |
Static Public Member Functions | |
| NamedFactory & | Instance (std::string name_space="") |
Private Types | |
| typedef std::map< std::string, NamedProxy * > | ProxyMap_t |
| typedef std::map< std::string, NamedFactory * > | FactoryMap_t |
Private Member Functions | |
| NamedFactory () | |
Private Attributes | |
| ProxyMap_t | fProxymap |
Static Private Attributes | |
| FactoryMap_t | fInstances |
|
|
Definition at line 39 of file NamedFactory.h. |
|
|
Definition at line 38 of file NamedFactory.h. |
|
|
Definition at line 30 of file NamedFactory.h. 00030 {}
|
|
|
Definition at line 40 of file NamedFactory.h. 00040 {} // singleton
|
|
|
Definition at line 26 of file NamedFactory.cxx. References fProxymap. Referenced by MultiPage::AddGfx(), EVD::AddGfx(), PageDisplay::AddPage(), EVD::BuildGfxMenu(), MultiPage::BuildMenus(), GfxTrackListMenu::HideAll(), GfxStripListMenu::HideAll(), GfxShowerListMenu::HideAll(), GfxMCVecListMenu::HideAll(), GfxDigitListMenu::HideAll(), main(), TridPageDisplay::MySpawnSinglePage(), and PageDisplay::SpawnSinglePage(). 00027 {
00028 ProxyMap_t::iterator it = fProxymap.find(name);
00029 if (it == fProxymap.end()) return 0;
00030 return it->second;
00031 }
|
|
|
Definition at line 9 of file NamedFactory.cxx. References fInstances. Referenced by MultiPage::AddGfx(), EVD::AddGfx(), PageDisplay::AddPage(), EVD::BuildGfxMenu(), MultiPage::BuildMenus(), GfxTrackListMenu::HideAll(), GfxStripListMenu::HideAll(), GfxShowerListMenu::HideAll(), GfxMCVecListMenu::HideAll(), GfxDigitListMenu::HideAll(), main(), TridPageDisplay::MySpawnSinglePage(), NamedProxy::NamedProxy(), and PageDisplay::SpawnSinglePage(). 00010 {
00011 FactoryMap_t::iterator mit;
00012 mit = fInstances.find(name_space);
00013 if (mit == fInstances.end()) {
00014 NamedFactory* nf = new NamedFactory;
00015 fInstances[name_space] = nf;
00016 return *nf;
00017 }
00018 return *(mit->second);
00019 }
|
|
||||||||||||
|
Definition at line 21 of file NamedFactory.cxx. References fProxymap. Referenced by NamedProxy::NamedProxy(). 00022 {
00023 fProxymap[name] = proxy;
00024 }
|
|
|
Definition at line 6 of file NamedFactory.cxx. Referenced by Instance(). |
|
|
Definition at line 44 of file NamedFactory.h. Referenced by GetProxy(), and Register(). |
1.3.9.1