Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The getCORBAComponent method was also extended in order to return the component from 'comps' the std::map:

Code Block
languagecpp
titleMockContainerServices.cpp
CORBA::Object* MockContainerServices::getCORBAComponent(const char* name){
    if (comps.find(name) == comps.end()) {
        maciErrType::CannotGetComponentExImpl ex(__FILE__, __LINE__, "MockContainerServices::getComponent");
        ex.setCURL(name);
        throw ex;
    }
    return CORBA::Object::_duplicate(comps[name].in());
}

...