Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Nov 30, 2022
1 parent 0fe7e31 commit be58dda
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tesseract_common/include/tesseract_common/serialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#include <boost/archive/binary_iarchive.hpp>
#include <boost/serialization/tracking.hpp>
#include <boost/serialization/tracking_enum.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid_serialize.hpp>
TESSERACT_COMMON_IGNORE_WARNINGS_POP

#include <tesseract_common/types.h>
Expand Down
7 changes: 7 additions & 0 deletions tesseract_common/include/tesseract_common/tool_path.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
#define TESSERACT_COMMON_TOOL_PATH_H

#include <string>
#include <boost/uuid/uuid.hpp>
#include <tesseract_common/tool_path_segment.h>
#include <tesseract_common/serialization.h>

namespace tesseract_common
{
Expand Down Expand Up @@ -235,11 +237,16 @@ class ToolPath
/** @brief The namespace associated with the tool path */
std::string ns_{ "general" };

friend struct tesseract_common::Serialization;
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive& ar, const unsigned int version); // NOLINT
};

} // namespace tesseract_common

#include <boost/serialization/export.hpp>
#include <boost/serialization/tracking.hpp>
BOOST_CLASS_EXPORT_KEY2(tesseract_common::ToolPath, "ToolPath")

#endif // TESSERACT_COMMON_TOOL_PATH_H
7 changes: 7 additions & 0 deletions tesseract_common/include/tesseract_common/tool_path_segment.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <string>
#include <boost/uuid/uuid.hpp>
#include <tesseract_common/types.h>
#include <tesseract_common/serialization.h>

namespace tesseract_common
{
Expand Down Expand Up @@ -219,10 +220,16 @@ class ToolPathSegment
/** @brief The container */
VectorIsometry3d container_;

friend struct tesseract_common::Serialization;
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive& ar, const unsigned int version); // NOLINT
};

} // namespace tesseract_common

#include <boost/serialization/export.hpp>
#include <boost/serialization/tracking.hpp>
BOOST_CLASS_EXPORT_KEY2(tesseract_common::ToolPathSegment, "ToolPathSegment")

#endif // TESSERACT_COMMON_TOOL_PATH_SEGMENT_H

0 comments on commit be58dda

Please sign in to comment.