Changeset 3368

Show
Ignore:
Timestamp:
04/08/07 17:59:45 (6 years ago)
Author:
balister
Message:

Fix a few smaller problems.

Location:
ossie/trunk/ossie/framework
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ossie/trunk/ossie/framework/DomainManager_impl.cpp

    r3363 r3368  
    322322//its File Manager. 
    323323//Unmount filesystem from "/DomainName1/<deviceMgr.label>" 
     324#if 0 ///\todo Fix this code so it figures out what file systems where really mounted 
    324325    std::string mountPoint = "/"; 
    325326    mountPoint += _identifier; 
     
    328329 
    329330    _fileMgr->unmount (mountPoint.c_str()); 
     331#endif 
    330332 
    331333//The unregisterDeviceManager operation shall unregister a DeviceManager component from the 
     
    392394    DEBUG(6, DomainManager, "Entering removeDeviceMgrServices."); 
    393395 
     396    return; ///\todo Deal with services 
    394397//The unregisterDeviceManager operation shall release all service(s) associated with 
    395398//the DeviceManager that is being unregistered. 
     
    10231026    DEBUG(1, DomMgr, "Entering installApplication with " << profileFileName); 
    10241027 
    1025     try { 
    10261028        if ((strstr (profileFileName, ".sad.xml")) == NULL) 
    10271029            std::cerr << "File " << profileFileName << " should end with .sad.xml." << std::endl; 
     
    10291031        DEBUG(8, DomainManager, "About to parse SAD file."); 
    10301032 
    1031         CF::File_var file = _fileMgr->open(profileFileName, true); 
     1033        CF::File_var file; 
     1034        try { 
     1035            file = _fileMgr->open(profileFileName, true); 
     1036        } catch (CF::FileException ex) { 
     1037            throw CF::InvalidFileName (CF::CFEINVAL, "File not found."); 
     1038        } 
     1039 
    10321040        SADParser *sadParser = new SADParser (file); 
    10331041        file->close(); 
     
    10381046    for (unsigned int i = 0; i < appFact_servants.size(); i++) 
    10391047    { 
    1040       if (!strcmp(sadParser->getID (), appFact_servants[i]->identifier())) 
     1048      if (strcmp(sadParser->getID (), appFact_servants[i]->identifier()) == 0) 
    10411049        { 
     1050            DEBUG(1, DomainManager, "Application already installed."); 
    10421051            delete sadParser; 
    1043             return; 
     1052            throw CF::DomainManager::ApplicationInstallationError(CF::CFEEXIST, "Application already installed."); 
    10441053        } 
    10451054    } 
     
    10721081 
    10731082    ossieSupport::sendObjAdded_event(_identifier.c_str(), sadParser->getID(), sadParser->getName(), (CORBA::Object_var) NULL, StandardEvent::APPLICATION_FACTORY); 
    1074  
    1075  
    1076   } catch (CF::FileException ex) { 
    1077     throw CF::DomainManager::ApplicationInstallationError (CF::CFEBADF, ex.msg); 
    1078   } 
    10791083 
    10801084    DEBUG(1, DomMgr, "Leaving installApplication") 
  • ossie/trunk/ossie/framework/helperFunctions.cpp

    r3295 r3368  
    2929void ossieSupport::createProfileFromFileName(std::string fileName, std::string &profile) 
    3030{ 
    31     profile = "<profile filename=\"/" + fileName + "\" />"; 
     31    profile = "<profile filename=\"" + fileName + "\" />"; 
    3232 
    3333    return;