Changeset 347 for XIOS/trunk/src/node/field.cpp
- Timestamp:
- 05/21/12 17:57:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/field.cpp
r346 r347 36 36 CField::~CField(void) 37 37 { 38 this->grid.reset() ;39 this->file.reset() ;38 // this->grid.reset() ; 39 // this->file.reset() ; 40 40 this->foperation.reset() ; 41 41 this->data.reset() ; … … 94 94 void CField::sendUpdateData(void) 95 95 { 96 shared_ptr<CContext>context = CContext::getCurrent() ;96 CContext* context = CContext::getCurrent() ; 97 97 CContextClient* client=context->client ; 98 98 … … 150 150 } 151 151 152 shared_ptr<CContext>context = CContext::getCurrent() ;152 CContext* context = CContext::getCurrent() ; 153 153 const CDate & currDate = context->getCalendar()->getCurrentDate(); 154 154 const CDate opeDate = *last_operation_srv + freq_operation_srv; … … 192 192 //---------------------------------------------------------------- 193 193 194 void CField::setRelFile( const boost::shared_ptr<CFile>_file)194 void CField::setRelFile(CFile* _file) 195 195 { 196 196 this->file = _file; … … 205 205 //---------------------------------------------------------------- 206 206 207 boost::shared_ptr<CGrid>CField::getRelGrid(void) const207 CGrid* CField::getRelGrid(void) const 208 208 { 209 209 return (this->grid); … … 212 212 //---------------------------------------------------------------- 213 213 214 boost::shared_ptr<CFile>CField::getRelFile(void) const214 CFile* CField::getRelFile(void) const 215 215 { 216 216 return (this->file); … … 234 234 //---------------------------------------------------------------- 235 235 236 boost::shared_ptr<CField>CField::getDirectFieldReference(void) const236 CField* CField::getDirectFieldReference(void) const 237 237 { 238 238 if (this->field_ref.isEmpty()) … … 249 249 //---------------------------------------------------------------- 250 250 251 const boost::shared_ptr<CField>CField::getBaseFieldReference(void) const251 CField* CField::getBaseFieldReference(void) const 252 252 { 253 253 return (baseRefObject); … … 256 256 //---------------------------------------------------------------- 257 257 258 const std::vector< boost::shared_ptr<CField> >& CField::getAllReference(void) const258 const std::vector<CField*>& CField::getAllReference(void) const 259 259 { 260 260 return (refObject); … … 325 325 { 326 326 std::set<CField *> sset; 327 boost::shared_ptr<CField>refer_sptr;327 CField* refer_sptr; 328 328 CField * refer_ptr = this; 329 329 … … 333 333 { 334 334 refer_sptr = refer_ptr->getDirectFieldReference(); 335 refer_ptr = refer_sptr .get();335 refer_ptr = refer_sptr; 336 336 337 337 if(sset.end() != sset.find(refer_ptr)) … … 356 356 357 357 StdString id = this->getBaseFieldReference()->getId(); 358 boost::shared_ptr<CContext>context = CContext::getCurrent();358 CContext* context = CContext::getCurrent(); 359 359 360 360 if (operation.isEmpty() || freq_op.isEmpty() || this->file->output_freq.isEmpty()) … … 442 442 void CField::solveGridReference(void) 443 443 { 444 boost::shared_ptr<CDomain>domain;445 boost::shared_ptr<CAxis>axis;444 CDomain* domain; 445 CAxis* axis; 446 446 447 447 if (!domain_ref.isEmpty()) … … 486 486 if (!axis_ref.isEmpty()) 487 487 { 488 this->grid = CGrid:: CreateGrid(domain, axis) ;488 this->grid = CGrid::createGrid(domain, axis) ; 489 489 this->grid_ref.setValue(this->grid->getId()); 490 490 } 491 491 else 492 492 { 493 this->grid = CGrid:: CreateGrid(domain) ;493 this->grid = CGrid::createGrid(domain) ; 494 494 this->grid_ref.setValue(this->grid->getId()); 495 495 } … … 518 518 << " invalid group name !"); 519 519 520 boost::shared_ptr<CFieldGroup>group = CFieldGroup::get(gref);521 boost::shared_ptr<CFieldGroup>owner = CFieldGroup::get(boost::polymorphic_downcast<CFieldGroup*>(this));522 523 std::vector< boost::shared_ptr<CField>> allChildren = group->getAllChildren();524 std::vector< boost::shared_ptr<CField>>::iterator520 CFieldGroup* group = CFieldGroup::get(gref); 521 CFieldGroup* owner = CFieldGroup::get(boost::polymorphic_downcast<CFieldGroup*>(this)); 522 523 std::vector<CField*> allChildren = group->getAllChildren(); 524 std::vector<CField*>::iterator 525 525 it = allChildren.begin(), end = allChildren.end(); 526 526 527 527 for (; it != end; it++) 528 528 { 529 boost::shared_ptr<CField>child = *it;529 CField* child = *it; 530 530 if (child->hasId()) owner->createChild()->field_ref.setValue(child->getId()) ; 531 531
Note: See TracChangeset
for help on using the changeset viewer.