Home | History | Annotate | Download | only in engine

Lines Matching defs:tree

40 #include "utils/config/tree.ipp"
54 /// Defines the schema of a configuration tree.
56 /// \param [in,out] tree The tree to populate. The tree should be empty on
59 init_tree(config::tree& tree)
61 tree.define< config::string_node >("architecture");
62 tree.define< config::string_node >("platform");
63 tree.define< engine::user_node >("unprivileged_user");
64 tree.define_dynamic("test_suites");
68 /// Fills in a configuration tree with default values.
70 /// \param [in,out] tree The tree to populate. init_tree() must have been
73 set_defaults(config::tree& tree)
75 tree.set< config::string_node >("architecture", KYUA_ARCHITECTURE);
76 tree.set< config::string_node >("platform", KYUA_PLATFORM);
82 /// Initializes the configuration tree.
85 /// syntax() method. We populate the configuration tree from here with the
88 /// \param [in,out] tree The tree to populate.
95 setup(config::tree& tree, const int syntax_version)
101 init_tree(tree);
102 set_defaults(tree);
108 /// \param [out] tree_ The tree in which the results of the parsing will be
110 /// we grab a reference to this object, the tree must remain valid for
112 explicit config_parser(config::tree& tree_) :
197 config::tree
200 config::tree tree;
201 init_tree(tree);
202 set_defaults(tree);
203 return tree;
208 config::tree
211 config::tree tree;
212 init_tree(tree);
213 return tree;
225 config::tree
228 config::tree tree;
230 config_parser(tree).parse(file);
234 return tree;