Go to the documentation of this file.
27 #include <boost/serialization/access.hpp>
28 #include <boost/serialization/base_object.hpp>
29 #include <boost/serialization/nvp.hpp>
30 #include <boost/uuid/random_generator.hpp>
31 #include <boost/uuid/uuid_serialize.hpp>
32 #include <boost/uuid/uuid_io.hpp>
51 template <
class Archive>
54 ar& boost::serialization::make_nvp(
"type",
type_);
55 ar& boost::serialization::make_nvp(
"uuid",
uuid_);
Geometry(GeometryType type=GeometryType::UNINITIALIZED)
const boost::uuids::uuid & getUUID() const
Get the geometry UUID.
boost::uuids::uuid uuid_
The uuid of the shape.
#define TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE(Type)
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
bool operator==(const Geometry &rhs) const
bool operator!=(const Geometry &rhs) const
GeometryType type_
The type of the shape.
#define TESSERACT_COMMON_IGNORE_WARNINGS_POP
void serialize(Archive &ar, const unsigned int version)
GeometryType getType() const
Get the geometry type.
void setUUID(const boost::uuids::uuid &uuid)
Set the geometry UUID.