Changeset 3400

Show
Ignore:
Timestamp:
04/12/07 15:43:01 (6 years ago)
Author:
balister
Message:

Split file system creation from file manager.

Location:
ossie/trunk/ossie
Files:
7 modified

Legend:

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

    r3365 r3400  
    4747 
    4848 
    49 DeviceManager_impl::DeviceManager_impl(const char *DCDInput) 
     49DeviceManager_impl::DeviceManager_impl(const char *DCDInput, const char *rootPath) 
    5050 
    5151{ 
    5252    DEBUG(6, DeviceManager, "Entering constructor with " << DCDInput); 
    53  
    54   _deviceConfigurationProfile = DCDInput; 
     53     
     54    _deviceConfigurationProfile = DCDInput; 
     55    fsRoot = rootPath; 
    5556} 
    5657 
     
    6768    _registeredServices.length(0); 
    6869 
    69     fs_servant = new FileSystem_impl(); 
     70    fs_servant = new FileSystem_impl(fsRoot.c_str()); 
    7071    _fileSys = fs_servant->_this(); 
    7172 
  • ossie/trunk/ossie/framework/DomainManager_impl.cpp

    r3368 r3400  
    3838#include "ossie/debug.h" 
    3939#include "ossie/DomainManager_impl.h" 
     40#include "ossie/FileSystem_impl.h" 
    4041#include "ossie/ossieSupport.h" 
    4142 
     
    4445#endif 
    4546 
    46 DomainManager_impl::DomainManager_impl (const char *_dmdFile) 
     47DomainManager_impl::DomainManager_impl (const char *_dmdFile, const char *rootPath) 
    4748{ 
    4849 
     
    6061 
    6162     
    62 // Create file manager 
     63    // Create file manager 
    6364    FileManager_impl *_fileMgrImpl = new FileManager_impl (); 
    6465 
    6566    _fileMgr = _fileMgrImpl->_this (); 
     67 
     68    // Create root file system and mount on File Manager 
     69    FileSystem_impl *fileSys_serv = new FileSystem_impl (rootPath); 
     70    fileSys = fileSys_serv->_this(); 
     71 
     72    _fileMgr->mount ("/", fileSys); 
    6673 
    6774    CF::File_var file = _fileMgr->open(_domainManagerProfile.c_str(), true); 
  • ossie/trunk/ossie/framework/FileManager_impl.cpp

    r3295 r3400  
    3434    DEBUG(4, FileManager, "Entering constructor."); 
    3535 
     36    // Set the path validation check function, if it is not already set 
    3637    if (boost::filesystem::path::default_name_check_writable()) 
    3738        boost::filesystem::path::default_name_check(boost::filesystem::portable_posix_name); 
     
    3940    numMounts = 0; 
    4041    mount_table = new CF::FileManager::MountSequence(5); 
    41  
    42     rootFileSys_serv = new FileSystem_impl (); 
    43     rootFileSys = rootFileSys_serv->_this(); 
    44  
    45     mount ("/", rootFileSys); 
    4642 
    4743    DEBUG(4, FileManager, "Leaving constructor.") 
  • ossie/trunk/ossie/framework/FileSystem_impl.cpp

    r3295 r3400  
    5050 
    5151 
    52 FileSystem_impl::FileSystem_impl (char *_root) 
     52FileSystem_impl::FileSystem_impl (const char *_root) 
    5353{ 
    5454    DEBUG(6, FileSystem, "In constructor with " << _root); 
  • ossie/trunk/ossie/include/ossie/DeviceManager_impl.h

    r3356 r3400  
    4343    { 
    4444        public: 
    45         DeviceManager_impl (const char *); 
     45      DeviceManager_impl (const char *, const char *); 
    4646 
    4747        // Run this after the constructor and the caller has created the object reference 
     
    9494        std::string _deviceConfigurationProfile; 
    9595 
     96        std::string fsRoot; 
    9697        FileSystem_impl *fs_servant; 
    9798        CF::FileSystem_var _fileSys; 
  • ossie/trunk/ossie/include/ossie/DomainManager_impl.h

    r3363 r3400  
    9696    { 
    9797      public: 
    98         DomainManager_impl (const char*); 
     98      DomainManager_impl (const char*, const char*); 
    9999        ~DomainManager_impl (); 
    100100 
     
    249249            _numDevMgrs; 
    250250 
    251         CF::FileManager_ptr 
    252             _fileMgr; 
     251        CF::FileManager_var _fileMgr; 
     252        CF::FileSystem_var fileSys; 
    253253 
    254254        void 
  • ossie/trunk/ossie/include/ossie/FileSystem_impl.h

    r3295 r3400  
    3939public: 
    4040    FileSystem_impl (); 
    41     FileSystem_impl (char *_root); 
     41    FileSystem_impl (const char *_root); 
    4242    ~ FileSystem_impl (); 
    4343