remove_link_command.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_ENVIRONMENT_REMOVE_LINK_COMMAND_H
27 #define TESSERACT_ENVIRONMENT_REMOVE_LINK_COMMAND_H
28 
31 #include <memory>
32 #include <string>
33 #include <boost/serialization/export.hpp>
35 
37 
38 namespace boost::serialization
39 {
40 class access;
41 }
42 
43 namespace tesseract_environment
44 {
45 class RemoveLinkCommand : public Command
46 {
47 public:
48  using Ptr = std::shared_ptr<RemoveLinkCommand>;
49  using ConstPtr = std::shared_ptr<const RemoveLinkCommand>;
50 
52 
60  RemoveLinkCommand(std::string link_name);
61 
62  const std::string& getLinkName() const;
63 
64  bool operator==(const RemoveLinkCommand& rhs) const;
65  bool operator!=(const RemoveLinkCommand& rhs) const;
66 
67 private:
68  std::string link_name_;
69 
72  template <class Archive>
73  void serialize(Archive& ar, const unsigned int version); // NOLINT
74 };
75 
76 } // namespace tesseract_environment
77 
78 BOOST_CLASS_EXPORT_KEY(tesseract_environment::RemoveLinkCommand)
79 #endif // TESSERACT_ENVIRONMENT_REMOVE_LINK_COMMAND_H
tesseract_environment::Command::Ptr
std::shared_ptr< Command > Ptr
Definition: command.h:86
tesseract_environment
Definition: command.h:45
tesseract_environment::RemoveLinkCommand::RemoveLinkCommand
RemoveLinkCommand()
Definition: remove_link_command.cpp:38
tesseract_environment::RemoveLinkCommand
Definition: remove_link_command.h:45
tesseract_environment::Command
Definition: command.h:83
tesseract_environment::RemoveLinkCommand::operator!=
bool operator!=(const RemoveLinkCommand &rhs) const
Definition: remove_link_command.cpp:54
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_common::Serialization
command.h
This contains classes for recording operations applied to the environment for tracking changes....
tesseract_environment::RemoveLinkCommand::link_name_
std::string link_name_
Definition: remove_link_command.h:68
tesseract_environment::RemoveLinkCommand::access
friend class boost::serialization::access
Definition: remove_link_command.h:70
tesseract_environment::RemoveLinkCommand::getLinkName
const std::string & getLinkName() const
Definition: remove_link_command.cpp:45
boost::serialization
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::Command::ConstPtr
std::shared_ptr< const Command > ConstPtr
Definition: command.h:87
tesseract_environment::RemoveLinkCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: remove_link_command.cpp:57
macros.h
tesseract_environment::RemoveLinkCommand::operator==
bool operator==(const RemoveLinkCommand &rhs) const
Definition: remove_link_command.cpp:47


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