Ignore:
Timestamp:
05/26/11 13:34:49 (13 years ago)
Author:
hozdoba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/xmlio/node/field.cpp

    r202 r205  
    183183      if (CXIOSManager::GetStatus() == CXIOSManager::LOC_SERVER) 
    184184      { 
    185          this->freq_operation = CDuration::FromString(this->file->output_freq.getValue()); 
    186          this->freq_write     = CDuration::FromString(this->file->output_freq.getValue()); 
    187          //this->foperation = boost::shared_ptr<func::CFunctor>(new CInstant()); 
     185         this->freq_operation = 
     186             CDuration::FromString(this->file->output_freq.getValue()); 
     187         this->freq_write     = 
     188             CDuration::FromString(this->file->output_freq.getValue()); 
     189         this->foperation     = 
     190             boost::shared_ptr<func::CFunctor>(new CInstant(this->data)); 
    188191      } 
    189192      else 
     
    192195         this->freq_write     = CDuration::FromString(this->file->output_freq.getValue()); 
    193196          
    194 #define DECLARE_FUNCTOR(MType, mtype) \ 
     197#define DECLARE_FUNCTOR(MType, mtype)              \ 
    195198   if  (operation.getValue().compare(#mtype) == 0) \ 
    196    { /*this->foperation = boost::shared_ptr<func::CFunctor>(new C##MType()); */ \ 
    197      return; } 
    198  
     199   {                                               \ 
     200      boost::shared_ptr<func::CFunctor>            \ 
     201            foperation_(new C##MType(this->data)); \ 
     202      this->foperation = foperation_;              \ 
     203      return;                                      \ 
     204   } 
    199205    
    200206#include "functor_type.conf" 
Note: See TracChangeset for help on using the changeset viewer.