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/object_template_impl.hpp

    r345 r346  
    146146   { 
    147147      std::vector<boost::shared_ptr<T> > & avect = 
    148          CObjectTemplate<T>::GetAllVectobject(CObjectFactory::GetCurrentContextId()); 
     148         CObjectTemplate<T>::GetAllVectobject(CContext::getCurrent()->getId()); 
    149149      typename std::vector<boost::shared_ptr<T> >::iterator 
    150150            it = avect.begin(), end = avect.end(); 
     
    168168   void CObjectTemplate<T>::sendAttributToServer(CAttribute& attr) 
    169169   { 
    170      shared_ptr<CContext> context=CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ; 
     170     shared_ptr<CContext> context=CContext::getCurrent() ; 
    171171      
    172172    if (!context->hasServer) 
     
    232232 
    233233   template <typename T> 
     234   bool CObjectTemplate<T>::has(const string& contextId, const string & id) 
     235   { 
     236     return CObjectFactory::HasObject<T>(contextId,id) ; 
     237   } 
     238 
     239   template <typename T> 
    234240   boost::shared_ptr<T> CObjectTemplate<T>::get(const string & id) 
    235241   { 
    236242     return CObjectFactory::GetObject<T>(id) ; 
     243   } 
     244 
     245   template <typename T> 
     246   boost::shared_ptr<T> CObjectTemplate<T>::get(const T* ptr) 
     247   { 
     248     return CObjectFactory::GetObject<T>(ptr) ; 
     249   } 
     250    
     251    
     252   template <typename T> 
     253   const vector<boost::shared_ptr<T> >& CObjectTemplate<T>::getAll() 
     254   { 
     255     return CObjectFactory::GetObjectVector<T>() ; 
     256   } 
     257 
     258   template <typename T> 
     259   const vector<boost::shared_ptr<T> >& CObjectTemplate<T>::getAll(const string & id) 
     260   { 
     261     return CObjectFactory::GetObjectVector<T>(id) ; 
     262   } 
     263 
     264   template <typename T> 
     265   boost::shared_ptr<T> CObjectTemplate<T>::get(const string& contextId, const string & id) 
     266   { 
     267     return CObjectFactory::GetObject<T>(contextId,id) ; 
    237268   } 
    238269 
     
    247278  { 
    248279    return CObjectFactory::GetObject<T>((T*)this) ; 
     280//      return shared_ptr<T>((T*)this) ; 
    249281  } 
    250282   
Note: See TracChangeset for help on using the changeset viewer.