15#ifndef LDNDC_MOBILE_SETUP_H_
16#define LDNDC_MOBILE_SETUP_H_
22#include <string/cbm_string.h>
24#define registered_key_prefix "registered.option."
28struct CBM_API mobile_module_options_t
30 typedef std::string key_type;
31 typedef cbm::string_t value_type;
32 typedef std::map< key_type, value_type > mobile_module_options_container_t;
33 typedef mobile_module_options_container_t::const_iterator const_iterator;
35 void clear() { this->options.clear(); }
36 bool exists( key_type
const & )
const;
38 value_type
const * get( key_type
const & )
const;
39 template <
typename _VALUE_TYPE >
40 _VALUE_TYPE get( key_type
const & _key, _VALUE_TYPE
const & _default)
43 value_type
const * option_value = this->get( _key);
46 return option_value->as< _VALUE_TYPE >();
49 lerr_t insert( key_type
const & , value_type
const & );
50 lerr_t merge( mobile_module_options_t
const *);
52 cbm::string_t to_string()
const;
54 const_iterator begin()
const
55 {
return this->options.begin(); }
56 const_iterator end()
const
57 {
return this->options.end(); }
60 mobile_module_options_container_t options;
67struct CBM_API mobile_module_info_t
74 mobile_module_options_t options;
82class CBM_API mobile_modules_info_t
85 mobile_modules_info_t();
86 ~mobile_modules_info_t();
88 size_t number_of_modules()
const;
90 mobile_module_info_t
const *
91 get_mobile_module_info_by_id(
char const * )
const;
92 mobile_module_info_t
const *
93 get_mobile_module_info_by_slot(
size_t )
const;
95 int add_module_setup( mobile_module_info_t
const &);
97 bool have_module(
char const * )
const;
101 std::vector< mobile_module_info_t > m_moduleinfos;
Spatially explicit groundwater model.
Definition airchemistryput.h:21