Changeset 3356
- Timestamp:
- 04/08/07 08:36:57 (6 years ago)
- Location:
- ossie/trunk/ossie
- Files:
-
- 6 modified
-
framework/Application_impl.cpp (modified) (7 diffs)
-
framework/DeviceManager_impl.cpp (modified) (3 diffs)
-
framework/DomainManager_impl.cpp (modified) (7 diffs)
-
include/ossie/DeviceManager_impl.h (modified) (2 diffs)
-
include/ossie/SPDImplementation.h (modified) (1 diff)
-
parser/SPDParser.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossie/trunk/ossie/framework/Application_impl.cpp
r3354 r3356 286 286 _rscObj = _orb->get_object_from_name ((*appComponentNamingContexts)[mem].elementId); 287 287 288 #if 0 ///\todo Remove dependency on SAD Parser 288 289 char *localFileName; 289 290 localFileName = new char[256]; … … 303 304 } 304 305 else { 306 #endif 305 307 CF::Resource_ptr _rsc = CF::Resource::_narrow (_rscObj); 306 308 DEBUG(2, App, "about to release Object") … … 309 311 //ossieSupport::sleep(1); 310 312 DEBUG(3, App, "returned from releaseObject") 311 } 313 #if 0 314 } 315 #endif 312 316 DEBUG(2, App, "app->releaseObject finished releasing this component") 313 317 … … 329 333 else 330 334 component_found = 1; 335 #if 0 ///todo Remove dependency on SAD Parser 331 336 if (strlen(localFileName)>0) { 332 337 CF::LoadableDevice_var loadDev = CF::LoadableDevice::_narrow(_devObj); … … 334 339 loadDev->unload(localFileName); 335 340 } 341 #endif 336 342 //check if there is any process running for this component 337 343 //if the componentId is contained in the processIdList, then terminate the process … … 347 353 } 348 354 } 355 #if 0 ///\todo Remove dependency on SAD Parser 349 356 CF::Device_var dev = CF::Device::_narrow(_devObj); 350 357 const char *PRFFileName = _spdParser.getPRFFile (); … … 367 374 DEBUG(3, App, "No capacity to deallocate") 368 375 } 376 #endif 369 377 } 370 378 } -
ossie/trunk/ossie/framework/DeviceManager_impl.cpp
r3328 r3356 101 101 for (unsigned int i = 0; i < componentPlacements.size(); i++) 102 102 { 103 //get spd reference 104 //parse spd file 105 SPDParser _SPDParser (_DCDParser.getFileNameFromRefId(componentPlacements[i].refId())); 103 CF::File_var file = _fileSys->open(_DCDParser.getFileNameFromRefId(componentPlacements[i].refId()), true); 104 105 SPDParser _SPDParser (file); 106 file->close(); 106 107 107 108 //get code file name from implementation … … 134 135 // in child 135 136 if (getenv("VALGRIND")) { 136 st ring logFile = "--log-file=";137 std::string logFile = "--log-file="; 137 138 logFile += (*_implementations)[0]->getCodeFile (); 138 139 char *val = "/usr/local/bin/valgrind"; … … 556 557 #endif 557 558 558 cout << "If this appears look at DeviceManager_impl.cpp line 572" <<endl;559 std::cout << "If this appears look at DeviceManager_impl.cpp line 572" << std::endl; 559 560 /*for (int i = 0; i<localComponentsVector->size();i++) 560 561 { -
ossie/trunk/ossie/framework/DomainManager_impl.cpp
r3337 r3356 74 74 /// \todo Discuss using filename + path directly from xml and screwing with FileSystem 75 75 76 #if 0 76 77 SPDParser _DM_SPD_Parser (_DMDParser.getDomainManagerSoftPkg()); 77 78 #endif 78 79 79 80 /******************************************************* … … 1028 1029 CF::File_var file = _fileMgr->open(profileFileName, true); 1029 1030 SADParser *sadParser = new SADParser (file); 1031 file->close(); 1030 1032 1031 1033 DEBUG(8, DomainManager, "Done parsing SAD file."); … … 1058 1060 DEBUG(8, DomainManager, "Create new Application Factory."); 1059 1061 1060 appFact_servants.push_back(new ApplicationFactory_impl (sadParser, &_applications));1062 appFact_servants.push_back(new ApplicationFactory_impl (sadParser, _fileMgr, &_applications)); 1061 1063 1062 1064 DEBUG(8, DomainManager, "Add Application Factory to list."); … … 1377 1379 DEBUG(6, DomainManager, "Entering validateSPD."); 1378 1380 1381 #if 0 ///\todo Figure out if this is really necessary 1382 // It does not make sense to create and destroy parsers, this is a heavy operation 1379 1383 if (_spdProfile == NULL) 1380 1384 return; … … 1413 1417 throw CF::DomainManager::ApplicationInstallationError (CF::CFEBADF, ex.msg); 1414 1418 } 1415 1419 #endif 1416 1420 } 1417 1421 … … 1421 1425 { 1422 1426 DEBUG(6, DomainManager, "Entering removeSPD."); 1427 1428 #if 0 ///\todo Fiugre out shwt this code is for 1429 // I think it supports s CF requirement that is silly 1423 1430 1424 1431 if (_spdProfile == NULL) … … 1504 1511 "[DomainManager:removeSPD] SPD file exception"); 1505 1512 } 1513 #endif 1506 1514 } 1507 1515 -
ossie/trunk/ossie/include/ossie/DeviceManager_impl.h
r2538 r3356 1 1 /**************************************************************************** 2 2 3 Copyright 2004, Virginia Polytechnic Institute and State University3 Copyright 2004, 2007 Virginia Polytechnic Institute and State University 4 4 5 5 This file is part of the OSSIE Core Framework. … … 90 90 91 91 // read only attributes 92 string _identifier;93 string _label;94 string _deviceConfigurationProfile;92 std::string _identifier; 93 std::string _label; 94 std::string _deviceConfigurationProfile; 95 95 96 96 FileSystem_impl *fs_servant; -
ossie/trunk/ossie/include/ossie/SPDImplementation.h
r3353 r3356 47 47 public: 48 48 OSAttributes() {}; 49 OSAttributes(const OSAttributes &);49 // OSAttributes(const OSAttributes &); 50 50 51 51 void setOSName(const char * _name) { osName = _name; }; -
ossie/trunk/ossie/parser/SPDParser.cpp
r3353 r3356 210 210 bool SPDParser::isScaCompliant() 211 211 { 212 if(softPkgType == SPDParser::SCA_COMPLIANT) return true; 213 else return false; 212 if(softPkgType == "sca_compliant") 213 return true; 214 else 215 return false; 214 216 } 215 217 … … 217 219 bool SPDParser::isScaNonCompliant() 218 220 { 219 if(softPkgType == SPDParser::SCA_NON_COMPLIANT) return true; 220 else return false; 221 if(softPkgType == "sca_non_compliant") 222 return true; 223 else 224 return false; 221 225 } 222 226