Anonymous avatar Anonymous committed 850855b

Use IProxyDictWithPool to make address remapping work for ElementLinks (Thanks Scott)

Comments (0)

Files changed (3)

+2009-08-17  Peter van Gemmeren <gemmeren@anl.gov>
+	* src/AddressRemappingSvc: Use IProxyDictWithPool (rather than IProxyDict) to make address remapping
+	work for ElementLinks (Thanks Scott)
+	* tagged as SGComps-00-00-24
+
 2009-07-24  Peter van Gemmeren <gemmeren@anl.gov>
 
 	* src/AddressRemappingSvc.cxx: Create addresses for new proxies to make remapping work with

src/AddressRemappingSvc.cxx

 #include "GaudiKernel/GenericAddress.h"
 
 #include "AthenaKernel/IClassIDSvc.h"
-#include "AthenaKernel/IProxyDict.h"
 
+#include "SGTools/IProxyDictWithPool.h"
 #include "SGTools/DataProxy.h"
 #include "SGTools/TransientAddress.h"
 
       SG::TransientAddress newTad(getClid(entry.second.substr(0, p_newSep)), entry.second.substr(p_newSep + 1));
       log << MSG::INFO << "TypeKeyOverwriteMaps for: " << newTad.clID() << "#" << newTad.name() << " -> " << oldTad.clID() << "#" << oldTad.name() << endreq;
       m_oldTads.push_back(oldTad);
+      m_proxyDict->stringToKey (oldTad.name(), oldTad.clID());
       m_newTads.push_back(newTad);
+      m_proxyDict->stringToKey (newTad.name(), newTad.clID());
    }
    return(StatusCode::SUCCESS);
 }

src/AddressRemappingSvc.h

 
 // Forward declarations
 class IClassIDSvc;
-class IProxyDict;
+class IProxyDictWithPool;
 
 //template <class TYPE> class SvcFactory;
 
 
 private: // Data
    ServiceHandle<IClassIDSvc> m_clidSvc;
-   ServiceHandle<IProxyDict>  m_proxyDict;
+   ServiceHandle<IProxyDictWithPool> m_proxyDict;
 
    /// TypeKeyOverwriteMaps, map for type#key overwrites.
    StringArrayProperty m_overwriteMaps;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.