Changeset 1358 for XIOS/dev/XIOS_DEV_CMIP6/src/filter
- Timestamp:
- 12/06/17 08:34:41 (6 years ago)
- Location:
- XIOS/dev/XIOS_DEV_CMIP6/src/filter
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/filter/file_server_writer_filter.cpp
r1158 r1358 19 19 } 20 20 21 bool CFileServerWriterFilter::mustAutoTrigger() const 22 { 23 return true; 24 } 25 21 26 bool CFileServerWriterFilter::isDataExpected(const CDate& date) const 22 27 { -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/file_server_writer_filter.hpp
r1158 r1358 23 23 CFileServerWriterFilter(CGarbageCollector& gc, CField* field); 24 24 25 /*! 26 * Tests if the filter must auto-trigger. 27 * 28 * \return true if the filter must auto-trigger 29 */ 30 bool virtual mustAutoTrigger() const; 31 32 /*! 33 * Tests whether data is expected for the specified date. 34 * 35 * \param date the date associated to the data 36 */ 25 37 bool virtual isDataExpected(const CDate& date) const; 38 26 39 protected: 27 40 /*! -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/file_writer_filter.cpp
r1251 r1358 37 37 } 38 38 39 bool CFileWriterFilter::mustAutoTrigger() const 40 { 41 return true; 42 } 43 39 44 bool CFileWriterFilter::isDataExpected(const CDate& date) const 40 45 { -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/file_writer_filter.hpp
r1158 r1358 24 24 25 25 /*! 26 * Tests if the filter must auto-trigger. 27 * 28 * \return true if the filter must auto-trigger 29 */ 30 bool virtual mustAutoTrigger() const; 31 32 /*! 26 33 * Tests whether data is expected for the specified date. 27 34 * -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/filter.cpp
r1158 r1358 41 41 } 42 42 43 bool CFilter::mustAutoTrigger() const 44 { 45 return COutputPin::mustAutoTrigger(); 46 } 47 43 48 bool CFilter::isDataExpected(const CDate& date) const 44 49 { -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/filter.hpp
r1158 r1358 49 49 50 50 /*! 51 * Tests if the filter must auto-trigger. 52 * 53 * \return true if the filter must auto-trigger 54 */ 55 bool virtual mustAutoTrigger() const; 56 57 /*! 51 58 * Tests whether data is expected for the specified date. 52 59 * -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/input_pin.hpp
r1158 r1358 60 60 61 61 /*! 62 * Tests if the pin must auto-trigger. 63 * 64 * \return true if the pin must auto-trigger 65 */ 66 bool virtual mustAutoTrigger() const = 0; 67 68 /*! 62 69 * Tests whether data is expected for the specified date. 63 70 * -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/output_pin.cpp
r1158 r1358 66 66 } 67 67 68 bool COutputPin::mustAutoTrigger() const 69 { 70 std::vector<std::pair<boost::shared_ptr<CInputPin>, size_t> >::const_iterator it, itEnd; 71 for (it = outputs.begin(), itEnd = outputs.end(); it != itEnd; ++it) 72 { 73 if (it->first->mustAutoTrigger()) 74 return true; 75 } 76 77 return false; 78 } 79 68 80 void COutputPin::setOutputTriggers() 69 81 { -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/output_pin.hpp
r1158 r1358 44 44 */ 45 45 bool virtual canBeTriggered() const; 46 47 /*! 48 * Tests if the pin must auto-trigger. 49 * 50 * \return true if the pin must auto-trigger 51 */ 52 bool virtual mustAutoTrigger() const; 46 53 47 54 /*! -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/store_filter.cpp
r1252 r1358 111 111 } 112 112 113 bool CStoreFilter::mustAutoTrigger() const 114 { 115 return false; 116 } 117 113 118 bool CStoreFilter::isDataExpected(const CDate& date) const 114 119 { -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/store_filter.hpp
r1201 r1358 53 53 54 54 /*! 55 * Tests if the filter must auto-trigger. 56 * 57 * \return true if the filter must auto-trigger 58 */ 59 bool virtual mustAutoTrigger() const; 60 61 /*! 55 62 * Tests whether data is expected for the specified date. 56 63 * -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/temporal_filter.cpp
r1302 r1358 84 84 } 85 85 86 bool CTemporalFilter::mustAutoTrigger() const 87 { 88 return true; 89 } 90 86 91 bool CTemporalFilter::isDataExpected(const CDate& date) const 87 92 { -
XIOS/dev/XIOS_DEV_CMIP6/src/filter/temporal_filter.hpp
r1302 r1358 41 41 42 42 /*! 43 * Tests if the filter must auto-trigger. 44 * 45 * \return true if the filter must auto-trigger 46 */ 47 bool virtual mustAutoTrigger() const; 48 49 /*! 43 50 * Tests whether data is expected for the specified date. 44 51 *
Note: See TracChangeset
for help on using the changeset viewer.