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/interface/c/icdata.cpp

    r345 r346  
    6767    void cxios_context_close_definition() 
    6868   { 
    69      boost::shared_ptr<CContext> context = 
    70             CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 
     69     boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
    7170     context->closeDefinition() ; 
    7271   }   
     
    7473   void cxios_context_finalize() 
    7574   { 
    76      boost::shared_ptr<CContext> context = 
    77             CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 
     75     boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
    7876     context->finalize() ; 
    7977   } 
     
    9189   { 
    9290      std::string fieldid_str; 
    93       boost::shared_ptr<CContext> context = 
    94       CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 
     91      boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
    9592      if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;  
    9693       
     
    108105   { 
    109106      std::string fieldid_str; 
    110       boost::shared_ptr<CContext> context = 
    111       CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 
     107      boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
    112108      if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 
    113109       
     
    124120   { 
    125121      std::string fieldid_str; 
    126       boost::shared_ptr<CContext> context = 
    127       CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 
     122      boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
    128123      if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;  
    129124       
     
    141136   { 
    142137      std::string fieldid_str; 
    143       boost::shared_ptr<CContext> context = 
    144       CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 
     138      boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
    145139      if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;  
    146140       
     
    160154   { 
    161155      std::string fieldid_str; 
    162       boost::shared_ptr<CContext> context = 
    163       CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 
     156      boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
    164157      if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;  
    165158       
     
    179172   { 
    180173      std::string fieldid_str; 
    181       boost::shared_ptr<CContext> context = 
    182       CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 
     174      boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
    183175      if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;  
    184176       
Note: See TracChangeset for help on using the changeset viewer.