Commit 1cf6cb5a authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

Add serialization/curves header

parent 9939b995
......@@ -77,7 +77,7 @@ SET(${PROJECT_NAME}_HEADERS
include/${PROJECT_NAME}/serialization/archive.hpp
include/${PROJECT_NAME}/serialization/registeration.hpp
include/${PROJECT_NAME}/serialization/eigen-matrix.hpp
include/${PROJECT_NAME}/serialization/fwd.hpp
include/${PROJECT_NAME}/serialization/curves.hpp
)
ADD_LIBRARY(${PROJECT_NAME} INTERFACE)
......
// Copyright (c) 2020, CNRS
// Authors: Pierre Fernbach <pierre.fernbach@laas.fr>
#ifndef CURVES_SERIALIZAION
#define CURVES_SERIALIZAION
/**
* This file must be included by all classes containing
* pointer of abstract curves as member and serializing them.
* curves::serialization::register_types(ar) must be called before serializing them.
*/
#include <boost/shared_ptr.hpp>
#include <boost/serialization/shared_ptr.hpp>
#include "registeration.hpp"
#include "curves/curve_abc.h"
#include "curves/so3_linear.h"
#include "curves/se3_curve.h"
#include "curves/polynomial.h"
#include "curves/bezier_curve.h"
#include "curves/piecewise_curve.h"
#include "curves/exact_cubic.h"
#include "curves/cubic_hermite_spline.h"
#endif // ifndef CURVES_SERIALIZAION
// Copyright (c) 2015-2018, CNRS
// Authors: Justin Carpentier <jcarpent@laas.fr>
#ifndef __curves_serialization_fwd_hpp__
#define __curves_api_serialization_fwd_hpp__
#include <boost/serialization/nvp.hpp>
#define BOOST_SERIALIZATION_MAKE_NVP(member) boost::serialization::make_nvp(##member, member)
#endif // ifndef __multicontact_api_serialization_fwd_hpp__
......@@ -20,6 +20,12 @@
#include "curves/fwd.h"
/**
*This file define a method register_types that
* register all the curves class of this package for a boost::Archive
* This is used to serialize pointer of the abstract class curve_abc
*/
namespace curves {
namespace serialization {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment