Go to the documentation of this file.00001
00002
00003 #ifndef __OROGEN_GENERATED_<%= typekit.name.upcase %>_BOOST_SERIALIZATION_HPP
00004 #define __OROGEN_GENERATED_<%= typekit.name.upcase %>_BOOST_SERIALIZATION_HPP
00005
00006 #include <<%= typekit.name %>/typekit/Types.hpp>
00007
00008 #include <boost/serialization/serialization.hpp>
00009 #include <boost/serialization/array.hpp>
00010 #include <boost/serialization/vector.hpp>
00011 #include <boost/serialization/string.hpp>
00012 #include <boost/serialization/map.hpp>
00013 #include <boost/serialization/set.hpp>
00014 #include <boost/serialization/list.hpp>
00015 #include <boost/serialization/deque.hpp>
00016 #include <boost/serialization/utility.hpp>
00017
00018 <% boost_serialize_types = converted_types.
00019 find_all do |t|
00020 t.boost_serialization_compatible? &&
00021 t.respond_to?(:to_boost_serialization)
00022 end %>
00023 <% if !boost_serialize_types.empty? %>
00024 namespace boost
00025 {
00026 namespace serialization
00027 {
00028 <% boost_serialize_types.each do |type| %>
00029 template<typename Archive>
00030 void serialize(Archive& a, <%= type.cxx_name %>& b, unsigned int version)
00031 {
00032 using boost::serialization::make_nvp;
00033 <%= type.to_boost_serialization %>
00034 }
00035 <% end %>
00036 }
00037 }
00038 <% end %>
00039
00040 #endif
00041