Changeset 3356

Show
Ignore:
Timestamp:
04/08/07 08:36:57 (6 years ago)
Author:
balister
Message:

Compiles again, but segfaults in SPD Parser.

Location:
ossie/trunk/ossie
Files:
6 modified

Legend:

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

    r3354 r3356  
    286286            _rscObj = _orb->get_object_from_name ((*appComponentNamingContexts)[mem].elementId); 
    287287 
     288#if 0 ///\todo Remove dependency on SAD Parser 
    288289        char *localFileName; 
    289290        localFileName = new char[256]; 
     
    303304        } 
    304305        else { 
     306#endif 
    305307            CF::Resource_ptr _rsc = CF::Resource::_narrow (_rscObj); 
    306308            DEBUG(2, App, "about to release Object") 
     
    309311            //ossieSupport::sleep(1); 
    310312            DEBUG(3, App, "returned from releaseObject") 
    311         } 
     313#if 0 
     314        } 
     315#endif 
    312316        DEBUG(2, App, "app->releaseObject finished releasing this component") 
    313317 
     
    329333                        else 
    330334                                component_found = 1; 
     335#if 0 ///todo Remove dependency on SAD Parser 
    331336                if (strlen(localFileName)>0) { 
    332337                  CF::LoadableDevice_var loadDev = CF::LoadableDevice::_narrow(_devObj); 
     
    334339                  loadDev->unload(localFileName); 
    335340                } 
     341#endif 
    336342                //check if there is any process running for this component 
    337343                //if the componentId is contained in the processIdList, then terminate the process 
     
    347353                  } 
    348354                } 
     355#if 0 ///\todo Remove dependency on SAD Parser 
    349356                CF::Device_var dev = CF::Device::_narrow(_devObj); 
    350357                const char *PRFFileName = _spdParser.getPRFFile (); 
     
    367374                    DEBUG(3, App, "No capacity to deallocate") 
    368375                } 
     376#endif 
    369377            } 
    370378       } 
  • ossie/trunk/ossie/framework/DeviceManager_impl.cpp

    r3328 r3356  
    101101        for (unsigned int i = 0; i < componentPlacements.size(); i++) 
    102102        { 
    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(); 
    106107 
    107108//get code file name from implementation 
     
    134135                // in child 
    135136                if (getenv("VALGRIND")) { 
    136                     string logFile = "--log-file="; 
     137                    std::string logFile = "--log-file="; 
    137138                    logFile += (*_implementations)[0]->getCodeFile (); 
    138139                    char *val = "/usr/local/bin/valgrind"; 
     
    556557#endif 
    557558 
    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; 
    559560/*for (int i = 0; i<localComponentsVector->size();i++) 
    560561   { 
  • ossie/trunk/ossie/framework/DomainManager_impl.cpp

    r3337 r3356  
    7474/// \todo Discuss using filename + path directly from xml and screwing with FileSystem 
    7575 
     76#if 0 
    7677    SPDParser _DM_SPD_Parser (_DMDParser.getDomainManagerSoftPkg()); 
    77  
     78#endif 
    7879 
    7980/******************************************************* 
     
    10281029        CF::File_var file = _fileMgr->open(profileFileName, true); 
    10291030        SADParser *sadParser = new SADParser (file); 
     1031        file->close(); 
    10301032 
    10311033        DEBUG(8, DomainManager, "Done parsing SAD file."); 
     
    10581060    DEBUG(8, DomainManager, "Create new Application Factory."); 
    10591061 
    1060     appFact_servants.push_back(new ApplicationFactory_impl (sadParser, &_applications)); 
     1062    appFact_servants.push_back(new ApplicationFactory_impl (sadParser, _fileMgr, &_applications)); 
    10611063 
    10621064    DEBUG(8, DomainManager, "Add Application Factory to list."); 
     
    13771379    DEBUG(6, DomainManager, "Entering validateSPD."); 
    13781380 
     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 
    13791383  if (_spdProfile == NULL) 
    13801384    return; 
     
    14131417      throw CF::DomainManager::ApplicationInstallationError (CF::CFEBADF, ex.msg); 
    14141418    } 
    1415  
     1419#endif 
    14161420} 
    14171421 
     
    14211425{ 
    14221426    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 
    14231430 
    14241431    if (_spdProfile == NULL) 
     
    15041511            "[DomainManager:removeSPD] SPD file exception"); 
    15051512    } 
     1513#endif 
    15061514} 
    15071515 
  • ossie/trunk/ossie/include/ossie/DeviceManager_impl.h

    r2538 r3356  
    11/**************************************************************************** 
    22 
    3 Copyright 2004, Virginia Polytechnic Institute and State University 
     3Copyright 2004, 2007 Virginia Polytechnic Institute and State University 
    44 
    55This file is part of the OSSIE Core Framework. 
     
    9090 
    9191// read only attributes 
    92         string _identifier; 
    93         string _label; 
    94         string _deviceConfigurationProfile; 
     92        std::string _identifier; 
     93        std::string _label; 
     94        std::string _deviceConfigurationProfile; 
    9595 
    9696        FileSystem_impl *fs_servant; 
  • ossie/trunk/ossie/include/ossie/SPDImplementation.h

    r3353 r3356  
    4747 public: 
    4848  OSAttributes() {}; 
    49   OSAttributes(const OSAttributes &); 
     49  //  OSAttributes(const OSAttributes &); 
    5050 
    5151  void setOSName(const char * _name) { osName = _name; }; 
  • ossie/trunk/ossie/parser/SPDParser.cpp

    r3353 r3356  
    210210bool SPDParser::isScaCompliant() 
    211211{ 
    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; 
    214216} 
    215217 
     
    217219bool SPDParser::isScaNonCompliant() 
    218220{ 
    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; 
    221225} 
    222226