Bayeux  3.4.1
Core Foundation library for SuperNEMO
mapping_utils.h
Go to the documentation of this file.
1 
3 #ifndef GEOMTOOLS_MAPPING_UTILS_H
4 #define GEOMTOOLS_MAPPING_UTILS_H 1
5 
6 // Standard library:
7 #include <string>
8 
9 // Third party:
10 // - Bayeux/datatools:
11 #include <datatools/properties.h>
12 
13 namespace geomtools {
14 
17  {
18  public:
19 
20  static const std::string & mapping_prefix();
21 
22  static const std::string & mapping_category_property();
23 
24  static const std::string & mapping_address_property();
25 
26  static const std::string & mapping_id_property();
27 
28  static const std::string & mapping_daughter_id_property();
29 
30  static void extract(const datatools::properties & source_,
31  datatools::properties & target_);
32 
33  static std::string make_key(const std::string & key_);
34 
35  static bool has_key(const datatools::properties & config_,
36  const std::string & key_);
37 
38  static bool has_flag(const datatools::properties & config_,
39  const std::string & key_);
40 
41  static bool has_id(const datatools::properties & config_);
42 
43  static void fetch_id(const datatools::properties & config_,
44  std::string & id_info_);
45 
46  static bool has_daughter_id(const datatools::properties & config_,
47  const std::string & daughter_name_);
48 
49  static void fetch_daughter_id(const datatools::properties & config_,
50  const std::string & daughter_name_,
51  std::string & id_info_);
52 
53  static bool has_labelled_info(const datatools::properties & config_,
54  const std::string & label_,
55  const std::string & name_);
56 
57  static void fetch_labelled_info(const datatools::properties & config_,
58  const std::string & label_,
59  const std::string & name_,
60  std::string & id_info_);
61 
62  };
63 
64 } // end of namespace geomtools
65 
66 #endif // GEOMTOOLS_MAPPING_UTILS_H
67 
68 /*
69 ** Local Variables: --
70 ** mode: c++ --
71 ** c-file-style: "gnu" --
72 ** tab-width: 2 --
73 ** End: --
74 */
static bool has_labelled_info(const datatools::properties &config_, const std::string &label_, const std::string &name_)
static const std::string & mapping_id_property()
static void fetch_daughter_id(const datatools::properties &config_, const std::string &daughter_name_, std::string &id_info_)
static bool has_flag(const datatools::properties &config_, const std::string &key_)
static void extract(const datatools::properties &source_, datatools::properties &target_)
static const std::string & mapping_daughter_id_property()
static bool has_key(const datatools::properties &config_, const std::string &key_)
static void fetch_id(const datatools::properties &config_, std::string &id_info_)
Mapping utilities.
Definition: mapping_utils.h:16
static const std::string & mapping_prefix()
static bool has_daughter_id(const datatools::properties &config_, const std::string &daughter_name_)
static void fetch_labelled_info(const datatools::properties &config_, const std::string &label_, const std::string &name_, std::string &id_info_)
static std::string make_key(const std::string &key_)
static bool has_id(const datatools::properties &config_)
static const std::string & mapping_category_property()
static const std::string & mapping_address_property()
Top-level namespace of the Bayeux/geomtools module library.
Definition: electromagnetic_field_manager.h:39
A dictionary of arbitrary properties.
Definition: properties.h:125