Lines Matching full:tree
41 #include "utils/config/tree.ipp"
56 /// Defines the schema of a configuration tree.
58 /// \param [in,out] tree The tree to populate. The tree should be empty on
61 init_tree(config::tree& tree) in init_tree() argument
63 tree.define< config::string_node >("architecture"); in init_tree()
64 tree.define< config::strings_set_node >("execenvs"); in init_tree()
65 tree.define< config::positive_int_node >("parallelism"); in init_tree()
66 tree.define< config::string_node >("platform"); in init_tree()
67 tree.define< engine::user_node >("unprivileged_user"); in init_tree()
68 tree.define_dynamic("test_suites"); in init_tree()
72 /// Fills in a configuration tree with default values.
74 /// \param [in,out] tree The tree to populate. init_tree() must have been
77 set_defaults(config::tree& tree) in set_defaults() argument
79 tree.set< config::string_node >("architecture", KYUA_ARCHITECTURE); in set_defaults()
86 tree.set< config::strings_set_node >("execenvs", supported); in set_defaults()
91 tree.set< config::positive_int_node >("parallelism", 1); in set_defaults()
92 tree.set< config::string_node >("platform", KYUA_PLATFORM); in set_defaults()
98 /// Initializes the configuration tree.
101 /// syntax() method. We populate the configuration tree from here with the
104 /// \param [in,out] tree The tree to populate.
111 setup(config::tree& tree, const int syntax_version) in setup() argument
117 init_tree(tree); in setup()
118 set_defaults(tree); in setup()
124 /// \param [out] tree_ The tree in which the results of the parsing will be
126 /// we grab a reference to this object, the tree must remain valid for
128 explicit config_parser(config::tree& tree_) : in config_parser()
225 config::tree
228 config::tree tree(false); in default_config() local
229 init_tree(tree); in default_config()
230 set_defaults(tree); in default_config()
231 return tree; in default_config()
238 config::tree
241 config::tree tree(false); in empty_config() local
242 init_tree(tree); in empty_config()
248 tree.set< config::strings_set_node >("execenvs", supported); in empty_config()
250 return tree; in empty_config()
262 config::tree
265 config::tree tree(false); in load_config() local
267 config_parser(tree).parse(file); in load_config()
271 return tree; in load_config()