//----------------------------------------------------------------------------- CView* UIViewFactory::createView (const UIAttributes& attributes, const IUIDescription* description) const { const std::string* className = attributes.getAttributeValue (UIViewCreator::kAttrClass); if (className) return createViewByName (className, attributes, description); std::string viewContainerName ("CViewContainer"); return createViewByName (&viewContainerName, attributes, description); }
//----------------------------------------------------------------------------- CView* UIViewFactory::createView (const UIAttributes& attributes, IUIDescription* description) { const std::string* className = attributes.getAttributeValue ("class"); if (className) return createViewByName (className, attributes, description); else { std::string viewContainerName ("CViewContainer"); return createViewByName (&viewContainerName, attributes, description); } return 0; }