Changeset 346 for XIOS/trunk/src/manager


Ignore:
Timestamp:
04/12/12 17:02:23 (12 years ago)
Author:
ymipsl
Message:

Suppress access to CObjectFactory class and CTreeManager.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/manager/tree_manager.cpp

    r345 r346  
    1717      boost::shared_ptr<CContext> CTreeManager::CreateContext(const StdString & id) 
    1818      { 
    19          boost::shared_ptr<CContextGroup> group_context = CContext::GetContextGroup(); 
     19         boost::shared_ptr<CContextGroup> group_context = CContext::getRoot(); 
    2020         CTreeManager::SetCurrentContextId(id); 
    2121         bool hasctxt = CObjectFactory::HasObject<CContext>(id); 
     
    7979            CObjectFactory::GetCurrentContextId(); 
    8080         std::vector<boost::shared_ptr<CContext> > def_vector = 
    81             CContext::GetContextGroup()->getChildList(); 
     81            CContext::getRoot()->getChildList(); 
    8282             
    8383         const StdSize size = def_vector.size();          
     
    116116         ENodeType renum = Unknown; 
    117117          
    118          boost::shared_ptr<CContextGroup> group_context = 
    119                            CContext::GetContextGroup(); 
     118         boost::shared_ptr<CContextGroup> group_context = CContext::getRoot(); 
    120119                            
    121120         is.read (reinterpret_cast<char*>(&renum), sizeof(ENodeType));    
     
    172171         StdString currentContextId = 
    173172            CObjectFactory::GetCurrentContextId(); 
    174          std::vector<boost::shared_ptr<CContext> > def_vector = 
    175             CContext::GetContextGroup()->getChildList(); 
     173         std::vector<boost::shared_ptr<CContext> > def_vector = CContext::getRoot()->getChildList(); 
    176174             
    177175         const StdSize size = def_vector.size();          
     
    262260         ENodeType renum = Unknown; 
    263261          
    264          boost::shared_ptr<CContextGroup> group_context = 
    265                            CContext::GetContextGroup(); 
    266          std::vector<boost::shared_ptr<CContext> > def_vector = 
    267             CContext::GetContextGroup()->getChildList(); 
     262         boost::shared_ptr<CContextGroup> group_context = CContext::getRoot(); 
     263         std::vector<boost::shared_ptr<CContext> > def_vector = CContext::getRoot()->getChildList(); 
    268264             
    269265         const StdSize size = def_vector.size();   
Note: See TracChangeset for help on using the changeset viewer.