Ignore:
Timestamp:
06/04/19 10:00:52 (5 years ago)
Author:
yushan
Message:

MARK: branch merged with trunk @1663. One output graph file with output file names in file writer filter.

File:
1 edited

Legend:

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

    r1670 r1671  
    1212    if (buildWorkflowGraph) 
    1313    { 
    14       if(InvalidableObject::count_ptr == 0) InvalidableObject::count_ptr = new std::map< StdString, int>; 
    15       if(InvalidableObject::count_ptr->find(CWorkflowGraph::my_filename) == InvalidableObject::count_ptr->end()) 
    16       { 
    17         (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename] = 0;  
    18       } 
    19    
    20       filterId = (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename]; 
    21       printf("output_pin ================ filterId = %d, CWorkflowGraph::my_filename = %s\n", (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename], CWorkflowGraph::my_filename.c_str()); 
    22       (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename]++; 
    23  
    24       //filterId = InvalidableObject::count; 
    25       //InvalidableObject::count++; 
     14      filterId = InvalidableObject::count; 
     15      InvalidableObject::count++; 
    2616    } 
    2717  } 
     
    5242    if (buildWorkflowGraph) 
    5343    { 
    54         if(CWorkflowGraph::mapFilterTimestamps_ptr==0) CWorkflowGraph::mapFilterTimestamps_ptr = new std::unordered_map<StdString, std::unordered_map <int, vector<Time> > >;  
    55       if(CWorkflowGraph::timestamps_ptr==0) CWorkflowGraph::timestamps_ptr = new std::unordered_map< StdString, set<Time> >; 
    56       (*CWorkflowGraph::mapFilterTimestamps_ptr)[CWorkflowGraph::my_filename][this->getFilterId()].push_back(packet->timestamp); 
    57       (*CWorkflowGraph::timestamps_ptr)[CWorkflowGraph::my_filename].insert(packet->timestamp); 
     44        if(CWorkflowGraph::mapFilterTimestamps_ptr==0) CWorkflowGraph::mapFilterTimestamps_ptr = new std::unordered_map <int, vector<Time> >; 
     45      if(CWorkflowGraph::timestamps_ptr==0) CWorkflowGraph::timestamps_ptr = new set<Time>; 
     46      (*CWorkflowGraph::mapFilterTimestamps_ptr)[this->getFilterId()].push_back(packet->timestamp); 
     47        CWorkflowGraph::timestamps_ptr->insert(packet->timestamp); 
    5848    } 
    5949 
Note: See TracChangeset for help on using the changeset viewer.