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/node/file.cpp

    r345 r346  
    101101         (*it)->refObject.push_back(*it); 
    102102         // Le champ est finalement actif, on y ajoute la référence au champ de base. 
    103          (*it)->setRelFile(CObjectFactory::GetObject(this)); 
     103         (*it)->setRelFile(CFile::get(this)); 
    104104         (*it)->baseRefObject->refObject.push_back(*it); 
    105105         // A faire, ajouter les references intermediaires... 
     
    121121   void CFile::setVirtualFieldGroup(void) 
    122122   { 
    123       this->setVirtualFieldGroup 
    124          (CObjectFactory::CreateObject<CFieldGroup>()); 
     123      this->setVirtualFieldGroup(CFieldGroup::create()); 
    125124   } 
    126125 
     
    128127   bool CFile::isSyncTime(void) 
    129128   { 
    130      shared_ptr<CContext> context=CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ; 
     129     shared_ptr<CContext> context = CContext::getCurrent() ; 
    131130     CDate& currentDate=context->calendar->getCurrentDate() ; 
    132131     if (! sync_freq.isEmpty()) 
     
    143142   void CFile::initFile(void) 
    144143   { 
    145       shared_ptr<CContext> context=CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ; 
     144      shared_ptr<CContext> context = CContext::getCurrent() ; 
    146145      CDate& currentDate=context->calendar->getCurrentDate() ; 
    147146       
     
    164163   bool CFile::checkSync(void) 
    165164   { 
    166      shared_ptr<CContext> context=CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ; 
     165     shared_ptr<CContext> context = CContext::getCurrent() ; 
    167166     CDate& currentDate=context->calendar->getCurrentDate() ; 
    168167     if (! sync_freq.isEmpty()) 
     
    181180    bool CFile::checkSplit(void) 
    182181    { 
    183       shared_ptr<CContext> context=CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ; 
     182      shared_ptr<CContext> context = CContext::getCurrent() ; 
    184183      CDate& currentDate=context->calendar->getCurrentDate() ; 
    185184      if (! split_freq.isEmpty()) 
     
    200199   void CFile::createHeader(void) 
    201200   { 
    202       shared_ptr<CContext> context=CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ; 
     201      shared_ptr<CContext> context = CContext::getCurrent() ; 
    203202      CDate& currentDate=context->calendar->getCurrentDate() ; 
    204203       
     
    258257         isOpen=true ; 
    259258 
    260          data_out->writeFile(CObjectFactory::GetObject<CFile>(this)); 
     259         data_out->writeFile(CFile::get(this)); 
    261260         for (it = this->enabledFields.begin() ;it != end; it++) 
    262261         { 
     
    395394   void CFile::sendAddField(const string& id) 
    396395   { 
    397     shared_ptr<CContext> context=CContext::current() ; 
     396    shared_ptr<CContext> context=CContext::getCurrent() ; 
    398397     
    399398    if (! context->hasServer ) 
     
    417416   void CFile::sendAddFieldGroup(const string& id) 
    418417   { 
    419     shared_ptr<CContext> context=CContext::current() ; 
     418    shared_ptr<CContext> context=CContext::getCurrent() ; 
    420419    if (! context->hasServer ) 
    421420    { 
Note: See TracChangeset for help on using the changeset viewer.