Changeset 346 for XIOS/trunk/src/node/file.cpp
- Timestamp:
- 04/12/12 17:02:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/file.cpp
r345 r346 101 101 (*it)->refObject.push_back(*it); 102 102 // Le champ est finalement actif, on y ajoute la référence au champ de base. 103 (*it)->setRelFile(C ObjectFactory::GetObject(this));103 (*it)->setRelFile(CFile::get(this)); 104 104 (*it)->baseRefObject->refObject.push_back(*it); 105 105 // A faire, ajouter les references intermediaires... … … 121 121 void CFile::setVirtualFieldGroup(void) 122 122 { 123 this->setVirtualFieldGroup 124 (CObjectFactory::CreateObject<CFieldGroup>()); 123 this->setVirtualFieldGroup(CFieldGroup::create()); 125 124 } 126 125 … … 128 127 bool CFile::isSyncTime(void) 129 128 { 130 shared_ptr<CContext> context =CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ;129 shared_ptr<CContext> context = CContext::getCurrent() ; 131 130 CDate& currentDate=context->calendar->getCurrentDate() ; 132 131 if (! sync_freq.isEmpty()) … … 143 142 void CFile::initFile(void) 144 143 { 145 shared_ptr<CContext> context =CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ;144 shared_ptr<CContext> context = CContext::getCurrent() ; 146 145 CDate& currentDate=context->calendar->getCurrentDate() ; 147 146 … … 164 163 bool CFile::checkSync(void) 165 164 { 166 shared_ptr<CContext> context =CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ;165 shared_ptr<CContext> context = CContext::getCurrent() ; 167 166 CDate& currentDate=context->calendar->getCurrentDate() ; 168 167 if (! sync_freq.isEmpty()) … … 181 180 bool CFile::checkSplit(void) 182 181 { 183 shared_ptr<CContext> context =CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ;182 shared_ptr<CContext> context = CContext::getCurrent() ; 184 183 CDate& currentDate=context->calendar->getCurrentDate() ; 185 184 if (! split_freq.isEmpty()) … … 200 199 void CFile::createHeader(void) 201 200 { 202 shared_ptr<CContext> context =CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ;201 shared_ptr<CContext> context = CContext::getCurrent() ; 203 202 CDate& currentDate=context->calendar->getCurrentDate() ; 204 203 … … 258 257 isOpen=true ; 259 258 260 data_out->writeFile(C ObjectFactory::GetObject<CFile>(this));259 data_out->writeFile(CFile::get(this)); 261 260 for (it = this->enabledFields.begin() ;it != end; it++) 262 261 { … … 395 394 void CFile::sendAddField(const string& id) 396 395 { 397 shared_ptr<CContext> context=CContext:: current() ;396 shared_ptr<CContext> context=CContext::getCurrent() ; 398 397 399 398 if (! context->hasServer ) … … 417 416 void CFile::sendAddFieldGroup(const string& id) 418 417 { 419 shared_ptr<CContext> context=CContext:: current() ;418 shared_ptr<CContext> context=CContext::getCurrent() ; 420 419 if (! context->hasServer ) 421 420 {
Note: See TracChangeset
for help on using the changeset viewer.