add_link_command.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_ENVIRONMENT_ADD_LINK_COMMAND_H
27 #define TESSERACT_ENVIRONMENT_ADD_LINK_COMMAND_H
28 
31 #include <memory>
32 #include <boost/serialization/export.hpp>
34 
37 
38 namespace boost::serialization
39 {
40 class access;
41 }
42 
43 namespace tesseract_environment
44 {
45 class AddLinkCommand : public Command
46 {
47 public:
48  using Ptr = std::shared_ptr<AddLinkCommand>;
49  using ConstPtr = std::shared_ptr<const AddLinkCommand>;
50 
71  AddLinkCommand(const tesseract_scene_graph::Link& link, bool replace_allowed = false);
72 
94  const tesseract_scene_graph::Joint& joint,
95  bool replace_allowed = false);
96 
97  const std::shared_ptr<const tesseract_scene_graph::Link>& getLink() const;
98  const std::shared_ptr<const tesseract_scene_graph::Joint>& getJoint() const;
99  bool replaceAllowed() const;
100 
101  bool operator==(const AddLinkCommand& rhs) const;
102  bool operator!=(const AddLinkCommand& rhs) const;
103 
104 private:
105  std::shared_ptr<const tesseract_scene_graph::Link> link_;
106  std::shared_ptr<const tesseract_scene_graph::Joint> joint_;
107  bool replace_allowed_{ false };
108 
111  template <class Archive>
112  void serialize(Archive& ar, const unsigned int version); // NOLINT
113 };
114 } // namespace tesseract_environment
115 
116 BOOST_CLASS_EXPORT_KEY(tesseract_environment::AddLinkCommand)
117 
118 #endif // TESSERACT_ENVIRONMENT_ADD_COMMAND_H
tesseract_environment::Command::Ptr
std::shared_ptr< Command > Ptr
Definition: command.h:86
tesseract_environment
Definition: command.h:45
tesseract_environment::AddLinkCommand::access
friend class boost::serialization::access
Definition: add_link_command.h:109
tesseract_environment::AddLinkCommand::joint_
std::shared_ptr< const tesseract_scene_graph::Joint > joint_
Definition: add_link_command.h:106
tesseract_environment::Command
Definition: command.h:83
tesseract_environment::AddLinkCommand::replaceAllowed
bool replaceAllowed() const
Definition: add_link_command.cpp:68
tesseract_environment::AddLinkCommand::replace_allowed_
bool replace_allowed_
Definition: add_link_command.h:107
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_common::Serialization
tesseract_environment::AddLinkCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: add_link_command.cpp:82
command.h
This contains classes for recording operations applied to the environment for tracking changes....
tesseract_environment::AddLinkCommand::link_
std::shared_ptr< const tesseract_scene_graph::Link > link_
Definition: add_link_command.h:105
tesseract_environment::AddLinkCommand::AddLinkCommand
AddLinkCommand()
Definition: add_link_command.cpp:41
tesseract_environment::AddLinkCommand::getLink
const std::shared_ptr< const tesseract_scene_graph::Link > & getLink() const
Definition: add_link_command.cpp:66
boost::serialization
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::AddLinkCommand
Definition: add_link_command.h:45
fwd.h
tesseract_environment::AddLinkCommand::operator==
bool operator==(const AddLinkCommand &rhs) const
Definition: add_link_command.cpp:70
tesseract_scene_graph::Joint
tesseract_environment::Command::ConstPtr
std::shared_ptr< const Command > ConstPtr
Definition: command.h:87
tesseract_environment::AddLinkCommand::getJoint
const std::shared_ptr< const tesseract_scene_graph::Joint > & getJoint() const
Definition: add_link_command.cpp:67
macros.h
tesseract_environment::AddLinkCommand::operator!=
bool operator!=(const AddLinkCommand &rhs) const
Definition: add_link_command.cpp:79


tesseract_environment
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:02:21