Lines Matching +full:input +full:- +full:value
54 /// \throw format_error If the value of line is invalid.
61 "the form 'name: value'"); in split_prop_line()
71 /// \param input The stream to read the lines from.
75 /// throw format_error If the input stream has an invalid format.
77 parse_properties(std::istream& input) in parse_properties() argument
82 while (std::getline(input, line).good() && !line.empty()) { in parse_properties()
86 throw engine::format_error("Duplicate value for property " + in parse_properties()
100 /// \param props The properties (name/value string pairs) as provided by the
116 const std::string& value = (*iter).second; in parse_atf_metadata() local
119 mdbuilder.set_string("description", value); in parse_atf_metadata()
121 mdbuilder.set_string("has_cleanup", value); in parse_atf_metadata()
123 mdbuilder.set_string("allowed_architectures", value); in parse_atf_metadata()
125 mdbuilder.set_string("execenv", value); in parse_atf_metadata()
127 mdbuilder.set_string("execenv_jail_params", value); in parse_atf_metadata()
129 mdbuilder.set_string("required_configs", value); in parse_atf_metadata()
131 mdbuilder.set_string("required_files", value); in parse_atf_metadata()
133 mdbuilder.set_string("allowed_platforms", value); in parse_atf_metadata()
135 mdbuilder.set_string("required_memory", value); in parse_atf_metadata()
137 mdbuilder.set_string("required_programs", value); in parse_atf_metadata()
139 mdbuilder.set_string("required_user", value); in parse_atf_metadata()
141 mdbuilder.set_string("timeout", value); in parse_atf_metadata()
142 } else if (name.length() > 2 && name.substr(0, 2) == "X-") { in parse_atf_metadata()
143 mdbuilder.add_custom(name.substr(2), value); in parse_atf_metadata()
159 /// \param input The stream to read from.
163 /// \throw format_error If there is any problem in the input data.
165 engine::parse_atf_list(std::istream& input) in parse_atf_list() argument
169 std::getline(input, line); in parse_atf_list()
170 if (line != "Content-Type: application/X-atf-tp; version=\"1\"" in parse_atf_list()
171 || !input.good()) in parse_atf_list()
173 "Content-Type for application/X-atf-tp version 1, " in parse_atf_list()
176 std::getline(input, line); in parse_atf_list()
177 if (!line.empty() || !input.good()) in parse_atf_list()
182 while (std::getline(input, line).good()) { in parse_atf_list()
189 const model::properties_map props = parse_properties(input); in parse_atf_list()