IODA Bundle
RequestUtils.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 1996-2018 ECMWF.
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 
12 /// @author Simon Smart
13 /// @date Aug 2018
14 
15 #ifndef odc_RequestUtils_h
16 #define odc_RequestUtils_h
17 
18 #include <string>
19 #include <map>
20 #include <vector>
21 
22 
23 namespace odc {
24 
25 //----------------------------------------------------------------------------------------------------------------------
26 
27 typedef std::map<std::string, std::vector<std::string>> RequestDict;
28 
30 
31 void checkKeywordsHaveValues(const RequestDict& request, const std::vector<std::string>& keywords);
32 
33 //----------------------------------------------------------------------------------------------------------------------
34 
35 } // namespace odc
36 
37 #endif
Definition: ColumnInfo.h:23
RequestDict unquoteRequestValues(const RequestDict &request)
Definition: RequestUtils.cc:26
void checkKeywordsHaveValues(const RequestDict &request, const std::vector< std::string > &keywords)
Definition: RequestUtils.cc:38
std::map< std::string, std::vector< std::string > > RequestDict
Definition: RequestUtils.h:27