63 assert(iBaseClass !=
nullptr);
66 TClass*
c = TClass::GetClass(iNameOfClass);
74 c = TClass::GetClass(iNameOfClass);
76 std::cerr <<
"failed to find " << iNameOfClass << std::endl;
80 void* inst =
c->New();
81 void* baseClassInst =
c->DynamicCast(iBaseClass, inst);
82 if (
nullptr == baseClassInst) {
83 std::cerr <<
"conversion to " << iBaseClass->ClassName() <<
" for class " << iNameOfClass <<
" failed" << std::endl;
void * createInstanceOf(const TClass *iBaseClass, const char *iNameOfClass)
FWModelChangeManager & changeManager() const
FWColorManager & colorManager() const
virtual void modelChangesComing()=0
virtual void colorsChanged()=0
virtual void modelChangesDone()=0
void modelChangesComingSlot()
void modelChangesDoneSlot()
sigc::signal< void()> changeSignalsAreDone_
FWModelChangeManager * m_changeManager
FWColorManager * m_colorManager
void setChangeManager(FWModelChangeManager *iCM)
void setColorManager(FWColorManager *iCM)
sigc::signal< void()> changeSignalsAreComing_
virtual ~FWViewManagerBase()
sigc::signal< void()> colorsHaveChanged_