change_link_visibility_command.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_ENVIRONMENT_CHANGE_LINK_VISIBILITY_COMMAND_H
27 #define TESSERACT_ENVIRONMENT_CHANGE_LINK_VISIBILITY_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 {
46 {
47 public:
48  using Ptr = std::shared_ptr<ChangeLinkVisibilityCommand>;
49  using ConstPtr = std::shared_ptr<const ChangeLinkVisibilityCommand>;
50 
52 
58  ChangeLinkVisibilityCommand(std::string link_name, bool enabled);
59 
60  const std::string& getLinkName() const;
61  bool getEnabled() const;
62 
63  bool operator==(const ChangeLinkVisibilityCommand& rhs) const;
64  bool operator!=(const ChangeLinkVisibilityCommand& rhs) const;
65 
66 private:
67  std::string link_name_;
68  bool enabled_{ false };
69 
72  template <class Archive>
73  void serialize(Archive& ar, const unsigned int version); // NOLINT
74 };
75 } // namespace tesseract_environment
76 
78 #endif // TESSERACT_ENVIRONMENT_CHANGE_LINK_VISIBILITY_COMMAND_H
tesseract_environment::Command::Ptr
std::shared_ptr< Command > Ptr
Definition: command.h:86
tesseract_environment
Definition: command.h:45
tesseract_environment::ChangeLinkVisibilityCommand::ChangeLinkVisibilityCommand
ChangeLinkVisibilityCommand()
Definition: change_link_visibility_command.cpp:38
tesseract_environment::Command
Definition: command.h:83
tesseract_environment::ChangeLinkVisibilityCommand::operator!=
bool operator!=(const ChangeLinkVisibilityCommand &rhs) const
Definition: change_link_visibility_command.cpp:56
tesseract_environment::ChangeLinkVisibilityCommand::getEnabled
bool getEnabled() const
Definition: change_link_visibility_command.cpp:46
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_environment::ChangeLinkVisibilityCommand::enabled_
bool enabled_
Definition: change_link_visibility_command.h:68
tesseract_common::Serialization
tesseract_environment::ChangeLinkVisibilityCommand::operator==
bool operator==(const ChangeLinkVisibilityCommand &rhs) const
Definition: change_link_visibility_command.cpp:48
command.h
This contains classes for recording operations applied to the environment for tracking changes....
boost::serialization
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::ChangeLinkVisibilityCommand::access
friend class boost::serialization::access
Definition: change_link_visibility_command.h:70
tesseract_environment::Command::ConstPtr
std::shared_ptr< const Command > ConstPtr
Definition: command.h:87
tesseract_environment::ChangeLinkVisibilityCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: change_link_visibility_command.cpp:59
tesseract_environment::ChangeLinkVisibilityCommand::getLinkName
const std::string & getLinkName() const
Definition: change_link_visibility_command.cpp:45
macros.h
tesseract_environment::ChangeLinkVisibilityCommand
Definition: change_link_visibility_command.h:45
tesseract_environment::ChangeLinkVisibilityCommand::link_name_
std::string link_name_
Definition: change_link_visibility_command.h:67


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