19 #include <boost/bind.hpp>
71 const char* iNameOfClass)
75 assert(iBaseClass !=0);
78 TClass *
c = TClass::GetClass( iNameOfClass );
85 gROOT->LoadMacro( (
std::string(iNameOfClass)+
".C+").c_str(), &error );
86 c = TClass::GetClass( iNameOfClass );
88 std::cerr <<
"failed to find "<< iNameOfClass << std::endl;
92 void* inst = c->New();
93 void* baseClassInst = c->DynamicCast(iBaseClass,inst);
94 if(0==baseClassInst) {
95 std::cerr<<
"conversion to "<<iBaseClass->ClassName() <<
" for class " << iNameOfClass <<
" failed"<<std::endl;
void * createInstanceOf(const TClass *iBaseClass, const char *iNameOfClass)
virtual void modelChangesComing()=0
virtual void colorsChanged()=0
virtual void modelChangesDone()=0
FWColorManager & colorManager() const
void modelChangesComingSlot()
void modelChangesDoneSlot()
FWModelChangeManager * m_changeManager
FWColorManager * m_colorManager
sigc::signal< void > changeSignalsAreDone_
void setChangeManager(FWModelChangeManager *iCM)
FWModelChangeManager & changeManager() const
sigc::signal< void > changeSignalsAreComing_
void setColorManager(FWColorManager *iCM)
sigc::signal< void > colorsHaveChanged_
virtual ~FWViewManagerBase()