Lines Matching full:model
29 #include "model/metadata.hpp"
34 #include "model/exceptions.hpp"
35 #include "model/types.hpp"
272 model::strings_set()); in set_defaults()
274 model::strings_set()); in set_defaults()
281 model::strings_set()); in set_defaults()
283 tree.set< paths_set_node >("required_files", model::paths_set()); in set_defaults()
285 tree.set< paths_set_node >("required_programs", model::paths_set()); in set_defaults()
318 /// \throw model::error If the key is not known or if the value is not valid.
326 throw model::error(F("Unknown metadata property %s") % key); in lookup_rw()
328 throw model::error(F("Invalid value for metadata property %s: %s") % in lookup_rw()
341 /// \throw model::error If the key is not known or if the value is not valid.
350 throw model::error(F("Unknown metadata property %s") % key); in set()
352 throw model::error(F("Invalid value for metadata property %s: %s") % in set()
362 struct model::metadata::impl : utils::noncopyable {
391 model::metadata::metadata(const utils::config::tree& props) : in metadata()
398 model::metadata::~metadata(void) in ~metadata()
409 model::metadata
410 model::metadata::apply_overrides(const metadata& overrides) const in apply_overrides()
419 const model::strings_set&
420 model::metadata::allowed_architectures(void) const in allowed_architectures()
435 const model::strings_set&
436 model::metadata::allowed_platforms(void) const in allowed_platforms()
451 model::properties_map
452 model::metadata::custom(void) const in custom()
462 model::metadata::description(void) const in description()
476 model::metadata::execenv(void) const in execenv()
490 model::metadata::execenv_jail_params(void) const in execenv_jail_params()
506 model::metadata::has_cleanup(void) const in has_cleanup()
520 model::metadata::has_execenv(void) const in has_execenv()
532 model::metadata::is_exclusive(void) const in is_exclusive()
545 const model::strings_set&
546 model::metadata::required_configs(void) const in required_configs()
562 model::metadata::required_disk_space(void) const in required_disk_space()
575 const model::paths_set&
576 model::metadata::required_files(void) const in required_files()
590 model::metadata::required_memory(void) const in required_memory()
603 const model::paths_set&
604 model::metadata::required_programs(void) const in required_programs()
618 model::metadata::required_user(void) const in required_user()
633 model::metadata::timeout(void) const in timeout()
646 model::properties_map
647 model::metadata::to_properties(void) const in to_properties()
660 model::metadata::operator==(const metadata& other) const in operator ==()
672 model::metadata::operator!=(const metadata& other) const in operator !=()
685 model::operator<<(std::ostream& output, const metadata& object) in operator <<()
690 const model::properties_map props = object.to_properties(); in operator <<()
691 for (model::properties_map::const_iterator iter = props.begin(); in operator <<()
706 struct model::metadata_builder::impl : utils::noncopyable {
722 /// \param base The base model to construct a copy from.
723 impl(const model::metadata& base) : in impl()
732 model::metadata_builder::metadata_builder(void) : in metadata_builder()
739 model::metadata_builder::metadata_builder(const model::metadata& base) : in metadata_builder()
746 model::metadata_builder::~metadata_builder(void) in ~metadata_builder()
757 /// \throw model::error If the value is invalid.
758 model::metadata_builder&
759 model::metadata_builder::add_allowed_architecture(const std::string& arch) in add_allowed_architecture()
779 /// \throw model::error If the value is invalid.
780 model::metadata_builder&
781 model::metadata_builder::add_allowed_platform(const std::string& platform) in add_allowed_platform()
802 /// \throw model::error If the value is invalid.
803 model::metadata_builder&
804 model::metadata_builder::add_custom(const std::string& key, in add_custom()
818 /// \throw model::error If the value is invalid.
819 model::metadata_builder&
820 model::metadata_builder::add_required_config(const std::string& var) in add_required_config()
840 /// \throw model::error If the value is invalid.
841 model::metadata_builder&
842 model::metadata_builder::add_required_file(const fs::path& path) in add_required_file()
860 /// \throw model::error If the value is invalid.
861 model::metadata_builder&
862 model::metadata_builder::add_required_program(const fs::path& path) in add_required_program()
881 /// \throw model::error If the value is invalid.
882 model::metadata_builder&
883 model::metadata_builder::set_allowed_architectures( in set_allowed_architectures()
884 const model::strings_set& as) in set_allowed_architectures()
897 /// \throw model::error If the value is invalid.
898 model::metadata_builder&
899 model::metadata_builder::set_allowed_platforms(const model::strings_set& ps) in set_allowed_platforms()
912 /// \throw model::error If the value is invalid.
913 model::metadata_builder&
914 model::metadata_builder::set_custom(const model::properties_map& props) in set_custom()
916 for (model::properties_map::const_iterator iter = props.begin(); in set_custom()
930 /// \throw model::error If the value is invalid.
931 model::metadata_builder&
932 model::metadata_builder::set_description(const std::string& description) in set_description()
945 /// \throw model::error If the value is invalid.
946 model::metadata_builder&
947 model::metadata_builder::set_execenv(const std::string& name) in set_execenv()
960 /// \throw model::error If the value is invalid.
961 model::metadata_builder&
962 model::metadata_builder::set_execenv_jail_params(const std::string& params) in set_execenv_jail_params()
975 /// \throw model::error If the value is invalid.
976 model::metadata_builder&
977 model::metadata_builder::set_has_cleanup(const bool cleanup) in set_has_cleanup()
990 /// \throw model::error If the value is invalid.
991 model::metadata_builder&
992 model::metadata_builder::set_is_exclusive(const bool exclusive) in set_is_exclusive()
1005 /// \throw model::error If the value is invalid.
1006 model::metadata_builder&
1007 model::metadata_builder::set_required_configs(const model::strings_set& vars) in set_required_configs()
1020 /// \throw model::error If the value is invalid.
1021 model::metadata_builder&
1022 model::metadata_builder::set_required_disk_space(const units::bytes& bytes) in set_required_disk_space()
1035 /// \throw model::error If the value is invalid.
1036 model::metadata_builder&
1037 model::metadata_builder::set_required_files(const model::paths_set& files) in set_required_files()
1050 /// \throw model::error If the value is invalid.
1051 model::metadata_builder&
1052 model::metadata_builder::set_required_memory(const units::bytes& bytes) in set_required_memory()
1065 /// \throw model::error If the value is invalid.
1066 model::metadata_builder&
1067 model::metadata_builder::set_required_programs(const model::paths_set& progs) in set_required_programs()
1080 /// \throw model::error If the value is invalid.
1081 model::metadata_builder&
1082 model::metadata_builder::set_required_user(const std::string& user) in set_required_user()
1096 /// \throw model::error If the value is invalid or the key does not exist.
1097 model::metadata_builder&
1098 model::metadata_builder::set_string(const std::string& key, in set_string()
1104 throw model::format_error(F("Unknown metadata property %s") % key); in set_string()
1106 throw model::format_error( in set_string()
1119 /// \throw model::error If the value is invalid.
1120 model::metadata_builder&
1121 model::metadata_builder::set_timeout(const datetime::delta& timeout) in set_timeout()
1137 model::metadata
1138 model::metadata_builder::build(void) const in build()