Changeset 1681 for XIOS/dev/dev_trunk_omp/src/filter/file_writer_filter.cpp
- Timestamp:
- 07/19/19 15:28:33 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/filter/file_writer_filter.cpp
r1680 r1681 19 19 } 20 20 21 void CFileWriterFilter:: onInputReady(std::vector<CDataPacketPtr> data)21 void CFileWriterFilter::buildGraph(std::vector<CDataPacketPtr> data) 22 22 { 23 23 bool building_graph = this->tag ? data[0]->timestamp >= this->start_graph && data[0]->timestamp <= this->end_graph: false; … … 29 29 30 30 CWorkflowGraph::allocNodeEdge(); 31 StdString namestring = to_string(this->field->name); 32 namestring.erase(0, 6); 33 namestring.erase(namestring.length()-1, 1); 31 34 32 CWorkflowGraph::addNode(this->filterID, "File Writer Filter\\n("+this->field->file->getId()+".nc)", 6, 0, 1, data[0]);35 CWorkflowGraph::addNode(this->filterID, namestring + "\\n("+this->field->file->getId()+".nc)", 6, 0, 1, data[0]); 33 36 34 // (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->file->recordXiosAttributes(); 35 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->recordXiosAttributes(); 36 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes += "</br>file attributes : </br>" +this->field->file->recordXiosAttributes(); 37 38 // if(CXios::isClient) std::cout<<"CFileWriterFilter::apply filter tag = "<<this->tag<<" start = "<<start_graph<<" end = "<<end_graph<<std::endl; 37 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->record4graphXiosAttributes(); 38 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes += "</br>file attributes : </br>" +this->field->file->record4graphXiosAttributes(); 39 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].clusterID =1; 40 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = ++(data[0]->distance); 39 41 40 42 if(CXios::isClient && CWorkflowGraph::build_begin) … … 47 49 else CWorkflowGraph::build_begin=true; 48 50 } 51 } 52 53 void CFileWriterFilter::onInputReady(std::vector<CDataPacketPtr> data) 54 { 55 buildGraph(data); 49 56 50 57 const bool detectMissingValue = ( !field->default_value.isEmpty() &&
Note: See TracChangeset
for help on using the changeset viewer.