kernel/component.cc
Component* Component::GetComponent(const string& name)
{
  NameMap::iterator iter = AllNames.find(name);
  if ( name == "None" || iter == AllNames.end() ) return 0;
  return AllComponents[AllNames[name]].component;
}
// Get the component, returning base class
Get the component, returning base class
Get the component returning base class
Component* Component::GetComponent(const string& name)
{
  NameMap::iterator iter = AllNames.find(name);
  if ( name == "None" || iter == AllNames.end() ) return 0;
  return AllComponents[AllNames[name]].component;
}
Component * Component :: GetComponent ( const string & name ) { NameMap :: iterator iter = AllNames . find ( name ) ; if ( name == " " || iter == AllNames . end ( ) ) return 0 ; return AllComponents [ AllNames [ name ] ] . component ; }
Get the component, returning base class
Get the component returning base class