Write a custom stl container in lcg dictionary
Write a custom stl container in lcg dictionary
When writing a lcg dictionary for a converter class using a custom std container, as
std::vector<UserDefNamespace::UserDefEnum>
lcg dictionary must know all related classes that are used.
So in selection.xml file one should have:
<class name=”std::vector<UserDefNamespace::UserDefEnum>” />
<class name=”std::vector<UserDefNamespace::UserDefEnum>::iterator” />
because probably also the iterator will be used. Same applies also for PackageDict.h file.
Be aware that for a std::map also the std::pair definition is needed.
See for example code in offline/PhysicsAnalysis/AnalysisCommon/EWPA/EWTPCnv
Wednesday, March 26, 2008
Writing converters for EWPA objects in POOL