12 entt::meta_factory<deploy_settings>{}
13 .type(
"deploy_settings"_hs)
19 .data<&deploy_settings::deploy_location>(
"deploy_location"_hs)
25 .data<&deploy_settings::deploy_dependencies>(
"deploy_dependencies"_hs)
29 entt::attribute{
"tooltip",
"This takes some time and if already done should't be necessary."},
31 .data<&deploy_settings::deploy_and_run>(
"deploy_and_run"_hs)
41 try_save(ar, ser20::make_nvp(
"deploy_location", obj.deploy_location.generic_string()));
42 try_save(ar, ser20::make_nvp(
"deploy_dependencies", obj.deploy_dependencies));
43 try_save(ar, ser20::make_nvp(
"deploy_and_run", obj.deploy_and_run));
50 std::string deploy_location;
51 if(
try_load(ar, ser20::make_nvp(
"deploy_location", deploy_location)))
53 obj.deploy_location = deploy_location;
56 try_load(ar, ser20::make_nvp(
"deploy_dependencies", obj.deploy_dependencies));
57 try_load(ar, ser20::make_nvp(
"deploy_and_run", obj.deploy_and_run));
65 std::ofstream stream(absolute_path);
69 try_save(ar, ser20::make_nvp(
"settings", obj));
75 std::ofstream stream(absolute_path, std::ios::binary);
79 try_save(ar, ser20::make_nvp(
"settings", obj));
85 std::ifstream stream(absolute_path);
89 return try_load(ar, ser20::make_nvp(
"settings", obj));
97 std::ifstream stream(absolute_path, std::ios::binary);
101 return try_load(ar, ser20::make_nvp(
"settings", obj));
attributes::value_type attribute
std::map< std::string, meta_any > attributes
auto create_oarchive_associative(std::ostream &stream)
BinaryInputArchive iarchive_binary_t
auto create_iarchive_associative(std::istream &stream)
simd::JSONOutputArchive oarchive_associative_t
BinaryOutputArchive oarchive_binary_t
simd::JSONInputArchive iarchive_associative_t
void save_to_file_bin(const std::string &absolute_path, const animation_clip &obj)
void load_from_file(const std::string &absolute_path, animation_clip &obj)
void save_to_file(const std::string &absolute_path, const animation_clip &obj)
void load_from_file_bin(const std::string &absolute_path, animation_clip &obj)
#define SAVE_INSTANTIATE(cls, Archive)
auto try_save(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool
#define LOAD_INSTANTIATE(cls, Archive)
auto try_load(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool