Last change
on this file since 470 was
470,
checked in by ymipsl, 10 years ago
|
Enhancement : using new field attribute "detect_missing_value=true" adn defining a default value, the temporal operator (average, minimum, maximum, accumulate ...) detect missing value in the field and don't take them into account to perform the operation.
YM
|
File size:
1.2 KB
|
Rev | Line | |
---|
[266] | 1 | #ifndef __XMLIO_CMaximum__ |
---|
| 2 | #define __XMLIO_CMaximum__ |
---|
| 3 | |
---|
[335] | 4 | /// xios headers /// |
---|
[266] | 5 | #include "functor.hpp" |
---|
[369] | 6 | #include "array_new.hpp" |
---|
[266] | 7 | |
---|
[335] | 8 | namespace xios |
---|
[266] | 9 | { |
---|
| 10 | namespace func |
---|
| 11 | { |
---|
| 12 | /// ////////////////////// Déclarations ////////////////////// /// |
---|
| 13 | class CMaximum : public CFunctor |
---|
| 14 | { |
---|
| 15 | /// Définition de type /// |
---|
| 16 | typedef CFunctor SuperClass; |
---|
| 17 | |
---|
| 18 | public : |
---|
| 19 | |
---|
| 20 | /// Constructeurs /// |
---|
| 21 | //CMaximum(void); // Not implemented. |
---|
| 22 | //CMaximum(const CFunData & data); |
---|
[369] | 23 | CMaximum(CArray<double,1>& doutput); |
---|
[470] | 24 | CMaximum(CArray<double,1>& doutput, double missingValue); |
---|
[266] | 25 | //CMaximum(const CMaximum & Maximum); // Not implemented. |
---|
| 26 | //CMaximum(const CMaximum * const Maximum); // Not implemented. |
---|
| 27 | |
---|
| 28 | /// Traitement /// |
---|
[369] | 29 | virtual void apply(const CArray<double,1>& dinput, CArray<double,1>& doutput); |
---|
[449] | 30 | virtual ETimeType timeType(void) { return centered ; } |
---|
[266] | 31 | |
---|
| 32 | /// Destructeur /// |
---|
| 33 | virtual ~CMaximum(void); |
---|
| 34 | |
---|
| 35 | }; // class CMaximum |
---|
| 36 | |
---|
| 37 | } // namespace func |
---|
| 38 | } // namespace xmlioserver |
---|
| 39 | |
---|
| 40 | #endif //__XMLIO_CMaximum__ |
---|
Note: See
TracBrowser
for help on using the repository browser.