Ignore:
Timestamp:
06/25/19 16:14:54 (5 years ago)
Author:
yushan
Message:

MARK: Dynamic workflow graph developement. Branch up to date with trunk @1663.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/filter/store_filter.cpp

    r1668 r1677  
    9090  void CStoreFilter::onInputReady(std::vector<CDataPacketPtr> data) 
    9191  { 
     92    if(CXios::isClient) std::cout<<"CStoreFilter onInputReady"<<std::endl; 
     93 
     94    if(this->tag) 
     95    { 
     96      this->filterID = InvalidableObject::filterIdGenerator++; 
     97 
     98      if(CWorkflowGraph::mapFieldToFilters_ptr==0) CWorkflowGraph::mapFieldToFilters_ptr = new std::unordered_map <StdString, vector <int> >; 
     99      if(CWorkflowGraph::mapFilters_ptr==0) CWorkflowGraph::mapFilters_ptr = new std::unordered_map <int, StdString>; 
     100 
     101      (*CWorkflowGraph::mapFilters_ptr)[this->filterID] = "Store Filter"; 
     102 
     103      if(CXios::isClient) std::cout<<"CStoreFilter::apply filter tag = "<<this->tag<<std::endl; 
     104 
     105      if(CXios::isClient)  
     106      { 
     107        StdString str = data[0]->fieldID +" ts=" + to_string(data[0]->timestamp); 
     108        (*CWorkflowGraph::mapFieldToFilters_ptr)[str].push_back(data[0]->src_filterID); 
     109        (*CWorkflowGraph::mapFieldToFilters_ptr)[str].push_back(this->filterID);   
     110      } 
     111    } 
     112 
     113 
    92114 
    93115    CDataPacketPtr packet; 
     
    139161  } 
    140162 
    141   int CStoreFilter::getFilterId(void) 
    142   { 
    143     return filterId; 
    144   } 
    145163 
    146164} // namespace xios 
Note: See TracChangeset for help on using the changeset viewer.