32 #include <boost/serialization/shared_ptr.hpp> 33 #include <boost/serialization/split_free.hpp> 37 namespace serialization
39 template<
class Archive>
41 save(Archive & ar,
const boost::shared_ptr<ecto::cell> &cell_,
const unsigned int file_version)
43 std::string type_str = cell_->type();
45 std::string instance_name = cell_->name();
47 ar << cell_->parameters << cell_->inputs << cell_->outputs;
50 template<
class Archive>
52 load(Archive & ar, boost::shared_ptr<ecto::cell> &cell_,
const unsigned int file_version)
54 std::string cell_type;
58 cell_->declare_params();
60 std::string instance_name;
62 cell_->name(instance_name);
63 ar >> cell_->parameters >> cell_->inputs >> cell_->outputs;
void save(Archive &ar, const boost::shared_ptr< ecto::cell > &cell_, const unsigned int file_version)
Definition: cell.hpp:41
Definition: registry.hpp:53
Definition: std_map_indexing_suite.hpp:20
factory_fn_t construct
Definition: registry.hpp:54
void load(Archive &ar, boost::shared_ptr< ecto::cell > &cell_, const unsigned int file_version)
Definition: cell.hpp:52
entry_t lookup(const std::string &name)