Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include <sstream>
00016 #include <cassert>
00017
00018 #include "FWCore/Utilities/interface/ObjectWithDict.h"
00019 #include "FWCore/Utilities/interface/TypeWithDict.h"
00020 #include "TClass.h"
00021
00022
00023 #include "Fireworks/Core/interface/FWSimpleProxyHelper.h"
00024 #include "Fireworks/Core/interface/FWEventItem.h"
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 FWSimpleProxyHelper::FWSimpleProxyHelper(const std::type_info& iType) :
00039 m_itemType(&iType),
00040 m_objectOffset(0)
00041 {
00042 }
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068 void
00069 FWSimpleProxyHelper::itemChanged(const FWEventItem* iItem)
00070 {
00071 if(0!=iItem) {
00072 edm::TypeWithDict baseType(*m_itemType);
00073 edm::TypeWithDict mostDerivedType(*(iItem->modelType()->GetTypeInfo()));
00074
00075 m_objectOffset = -mostDerivedType.getBaseClassOffset(baseType);
00076 }
00077 }
00078
00079
00080
00081