Ignore:
Timestamp:
07/31/19 13:51:01 (5 years ago)
Author:
yushan
Message:

backup for trunk with graph

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/filter/file_writer_filter.hpp

    r1654 r1686  
    33 
    44#include "input_pin.hpp" 
     5#include "file.hpp" 
     6#include "duration.hpp" 
    57 
    68namespace xios 
     
    1416  { 
    1517    public: 
     18      int tag; 
     19      Time start_graph; 
     20      Time end_graph; 
     21      CField* field; //<! The associated field 
     22      int filterID; 
     23      int distance; 
     24 
    1625      /*! 
    1726       * Constructs the filter (with one input slot) associated to the specified field 
     
    2029       * \param gc the associated garbage collector 
    2130       * \param field the associated field 
    22        * \param[in] buildWorkflowGraph indicates whether the workflow will be visualized 
    2331       */ 
    24       CFileWriterFilter(CGarbageCollector& gc, CField* field, bool buildWorkflowGraph = false); 
     32      CFileWriterFilter(CGarbageCollector& gc, CField* field); 
    2533 
    26       inline StdString GetName(void) {return StdString("File writer filter");}; 
     34      inline StdString GetName(void) {return "File writer filter";}; 
     35 
    2736 
    2837      /*! 
     
    4049      bool virtual isDataExpected(const CDate& date) const; 
    4150 
    42       /*! 
    43        * Returns filter's id needed in case of building workflow graph 
    44        */ 
    45       int getFilterId(); 
    46  
    4751    protected: 
    4852      /*! 
     
    5256       */ 
    5357      void virtual onInputReady(std::vector<CDataPacketPtr> data); 
     58      void virtual buildGraph(std::vector<CDataPacketPtr> data); 
    5459 
    5560    private: 
    56       CField* field;                          //<! The associated field 
    5761      std::map<Time, CDataPacketPtr> packets; //<! The stored packets 
    58       int filterId;                           //<! Filter's id needed in case of building a workflow 
    59  
    6062  }; // class CFileWriterFilter 
    6163} // namespace xios 
Note: See TracChangeset for help on using the changeset viewer.