MeteoIODoc 20241017.2ccf54a9
plugin_utils.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2/***********************************************************************************/
3/* Copyright 2009 WSL Institute for Snow and Avalanche Research SLF-DAVOS */
4/***********************************************************************************/
5/* This file is part of MeteoIO.
6 MeteoIO is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 MeteoIO is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with MeteoIO. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef PLUGIN_UTILS_H
20#define PLUGIN_UTILS_H
21
22#include <meteoio/FileUtils.h>
23#include <meteoio/Config.h>
24
25#include <vector>
26
27namespace mio
28{
29namespace PLUGIN
30{
31
32 std::vector<std::string> getFilesWithPaths(const std::vector<std::string> &vecFilenames, const std::string &inpath, const std::string& dflt_extension);
33 void scanMeteoPath(const Config &cfg, const std::string &inpath, std::vector<std::string> &vecFilenames, const std::string& pattern);
34
35
36} // namespace PLUGIN
37} // namespace mio
38
39
40#endif // PLUGIN_UTILS_H
std::vector< std::string > getFilesWithPaths(const std::vector< std::string > &vecFilenames, const std::string &inpath, const std::string &dflt_extension)
Get the file names together with paths and check for validity.
Definition: plugin_utils.cc:39
void scanMeteoPath(const Config &cfg, const std::string &inpath, std::vector< std::string > &vecFilenames, const std::string &pattern)
Definition: plugin_utils.cc:58
Definition: Config.cc:31