18 #include <boost/bind.hpp> 70 const char* iNameOfClass)
74 assert(iBaseClass !=
nullptr);
77 TClass *
c = TClass::GetClass( iNameOfClass );
84 gROOT->LoadMacro( (
std::string(iNameOfClass)+
".C+").c_str(), &error );
85 c = TClass::GetClass( iNameOfClass );
87 std::cerr <<
"failed to find "<< iNameOfClass << std::endl;
91 void* inst = c->New();
92 void* baseClassInst = c->DynamicCast(iBaseClass,inst);
93 if(
nullptr==baseClassInst) {
94 std::cerr<<
"conversion to "<<iBaseClass->ClassName() <<
" for class " << iNameOfClass <<
" failed"<<std::endl;
122 assert(
nullptr!=iCM);
131 assert(
nullptr!= iCM);
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()