WSL/SLF GitLab Repository

FilterProperties.h 1.59 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/***********************************************************************************/
/*  Copyright 2009 WSL Institute for Snow and Avalanche Research    SLF-DAVOS      */
/***********************************************************************************/
/* This file is part of MeteoIO.
    MeteoIO is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    MeteoIO is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with MeteoIO.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FILTERPROPERTIES_H__
#define __FILTERPROPERTIES_H__

#include <meteoio/MeteoData.h>
#include <meteoio/StationData.h>

#include <string>
#include <vector>

namespace mio {

29
typedef void(*funcptr)(const std::vector<MeteoData>& vecM,
30
                       const std::vector<std::string>& vecArgs, const MeteoData::Parameters& paramindex,
31
                       std::vector<MeteoData>& vecWindowM);
32
33
34
35
36
37

class FilterProperties {
	public:
		bool checkonly;
		funcptr filterfunc;
		
38
 		FilterProperties() : checkonly(false), filterfunc(NULL){}
39
 		FilterProperties(const bool& i_co, const funcptr& i_ptr ) : checkonly(i_co), filterfunc(i_ptr){}
40
41
42
43
44
};

} //end namespace mio

#endif