LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
oryza2000-cropfile.h
1/*
2 * SPDX-FileCopyrightText: Karlsruhe Institute of Technology (KIT)
3 * SPDX-License-Identifier: LicenseRef-LandscapeDNDC
4 * This file is part of LandscapeDNDC. See LICENSE.
5 */
24
25#ifndef LM_ORYZA2000_CROPFILE_H_
26#define LM_ORYZA2000_CROPFILE_H_
27
28#include "ldndc.h"
29
30#include <map>
31#include <string>
32#include <vector>
33
34namespace ldndc {
35
36class LDNDC_API Oryza2000CropFile
37{
38 public:
39 Oryza2000CropFile();
40
46 lerr_t read( std::string const & /*file name*/);
47
48 std::string const & filename() const
49 { return this->m_filename; }
50 size_t size() const
51 { return this->m_values.size(); }
52
59 bool get_scalar( char const * /*key*/, double * /*value*/) const;
60
65 std::vector< std::string > get_values( char const * /*key*/) const;
66
67 private:
68 std::string m_filename;
69 /* upper case key -> raw value (continuation lines concatenated) */
70 std::map< std::string, std::string > m_values;
71};
72
73} /* namespace ldndc */
74
75#endif /* !LM_ORYZA2000_CROPFILE_H_ */
Spatially explicit groundwater model.
Definition airchemistryput.h:21