Changeset 3538
- Timestamp:
- 04/30/07 18:04:35 (6 years ago)
- Location:
- ossie/trunk/ossie
- Files:
-
- 4 modified
-
framework/ApplicationFactory_impl.cpp (modified) (2 diffs)
-
framework/DeviceManager_impl.cpp (modified) (2 diffs)
-
framework/helperFunctions.cpp (modified) (3 diffs)
-
include/ossie/ossieSupport.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossie/trunk/ossie/framework/ApplicationFactory_impl.cpp
r3365 r3538 670 670 spdFile->close(); 671 671 672 CF::File_var scdFile = fileMgr->open(spd.getSoftPkgName(), true); 672 std::string scdPath; 673 CF::File_var scdFile = fileMgr->open(ossieSupport::spd_rel_file(component->getSPDFile(),spd.getSoftPkgName(), scdPath), true); 673 674 SCDParser scd(scdFile); 674 675 scdFile->close(); … … 687 688 688 689 // Extract Properties 689 CF::File_var prfFile = fileMgr->open(spd.getPRFFile(), true); 690 std::string prfPath; 691 CF::File_var prfFile = fileMgr->open(ossieSupport::spd_rel_file(component->getSPDFile(), spd.getPRFFile(), prfPath), true); 690 692 PRFParser prf(prfFile); 691 693 prfFile->close(); -
ossie/trunk/ossie/framework/DeviceManager_impl.cpp
r3513 r3538 165 165 tempDevice->initialize (); 166 166 167 //Get properties from SPD 168 if (strlen(_SPDParser.getPRFFile ()) > 0){ 169 DEBUG(7, DevMgr, "getting PRF file: "<<_SPDParser.getPRFFile ()); 170 CF::File_var prfFile = _fileSys->open(_SPDParser.getPRFFile (), true); 167 if (strlen(_SPDParser.getPRFFile ()) > 0){ 168 DEBUG(7, DevMgr, "getting PRF file: "<<_SPDParser.getPRFFile ()); 169 170 //Get properties from SPD 171 std::string prfFilePath; 172 CF::File_var prfFile = _fileSys->open(ossieSupport::spd_rel_file(_DCDParser.getFileNameFromRefId(componentPlacements[i].refId()), _SPDParser.getPRFFile (), prfFilePath), true); 171 173 PRFParser _PRFparser (prfFile); 172 174 prfFile->close(); 173 175 174 176 std::vector <PRFProperty *> *prfSimpleProp = _PRFparser.getConfigureProperties (); 175 177 CF::Properties configCapacities; … … 178 180 configCapacities[i] = *((*prfSimpleProp)[i]->getDataType ()); 179 181 } 180 182 181 183 //configure properties 182 184 DEBUG(3, DevMgr, "Configuring capacities"); 183 185 tempDevice->configure (configCapacities); 184 } 186 } 187 185 188 DEBUG(3, DevMgr, "Registering device"); 186 189 registerDevice (CF::Device::_duplicate(tempDevice)); -
ossie/trunk/ossie/framework/helperFunctions.cpp
r3368 r3538 25 25 #include <boost/filesystem/path.hpp> 26 26 27 namespace fs = boost::filesystem; 28 27 29 #include <ossie/ossieSupport.h> 28 30 … … 37 39 { 38 40 try { 39 boost::filesystem::path testPath(fileName, boost::filesystem::portable_posix_name);41 fs::path testPath(fileName, fs::portable_posix_name); 40 42 } catch (...) { 41 43 return false; … … 44 46 return true; 45 47 } 48 49 const char * ossieSupport::spd_rel_file(const char *spdFile, const char *name, std::string &fileName) 50 { 51 52 fs::path spdPath(spdFile); 53 54 fs::path filePath = spdPath.branch_path() / name; 55 56 fileName = filePath.string(); 57 58 return fileName.c_str(); 59 } -
ossie/trunk/ossie/include/ossie/ossieSupport.h
r3295 r3538 218 218 void createProfileFromFileName(std::string fileName, std::string &profile); 219 219 bool isValidFileName(const char* fileName); 220 const char *spd_rel_file(const char *spdfile, const char *name, std::string &fileName); 221 220 222 } // Close ossieSupport Namespace 221 223 #endif