Changeset 3368
- Timestamp:
- 04/08/07 17:59:45 (6 years ago)
- Location:
- ossie/trunk/ossie/framework
- Files:
-
- 2 modified
-
DomainManager_impl.cpp (modified) (7 diffs)
-
helperFunctions.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossie/trunk/ossie/framework/DomainManager_impl.cpp
r3363 r3368 322 322 //its File Manager. 323 323 //Unmount filesystem from "/DomainName1/<deviceMgr.label>" 324 #if 0 ///\todo Fix this code so it figures out what file systems where really mounted 324 325 std::string mountPoint = "/"; 325 326 mountPoint += _identifier; … … 328 329 329 330 _fileMgr->unmount (mountPoint.c_str()); 331 #endif 330 332 331 333 //The unregisterDeviceManager operation shall unregister a DeviceManager component from the … … 392 394 DEBUG(6, DomainManager, "Entering removeDeviceMgrServices."); 393 395 396 return; ///\todo Deal with services 394 397 //The unregisterDeviceManager operation shall release all service(s) associated with 395 398 //the DeviceManager that is being unregistered. … … 1023 1026 DEBUG(1, DomMgr, "Entering installApplication with " << profileFileName); 1024 1027 1025 try {1026 1028 if ((strstr (profileFileName, ".sad.xml")) == NULL) 1027 1029 std::cerr << "File " << profileFileName << " should end with .sad.xml." << std::endl; … … 1029 1031 DEBUG(8, DomainManager, "About to parse SAD file."); 1030 1032 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 1032 1040 SADParser *sadParser = new SADParser (file); 1033 1041 file->close(); … … 1038 1046 for (unsigned int i = 0; i < appFact_servants.size(); i++) 1039 1047 { 1040 if ( !strcmp(sadParser->getID (), appFact_servants[i]->identifier()))1048 if (strcmp(sadParser->getID (), appFact_servants[i]->identifier()) == 0) 1041 1049 { 1050 DEBUG(1, DomainManager, "Application already installed."); 1042 1051 delete sadParser; 1043 return;1052 throw CF::DomainManager::ApplicationInstallationError(CF::CFEEXIST, "Application already installed."); 1044 1053 } 1045 1054 } … … 1072 1081 1073 1082 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 }1079 1083 1080 1084 DEBUG(1, DomMgr, "Leaving installApplication") -
ossie/trunk/ossie/framework/helperFunctions.cpp
r3295 r3368 29 29 void ossieSupport::createProfileFromFileName(std::string fileName, std::string &profile) 30 30 { 31 profile = "<profile filename=\" /" + fileName + "\" />";31 profile = "<profile filename=\"" + fileName + "\" />"; 32 32 33 33 return;