PublisherListener.hpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. /**
  15. * @file PublisherListener.hpp
  16. */
  17. #ifndef _FASTDDS_PUBLISHERLISTENER_HPP_
  18. #define _FASTDDS_PUBLISHERLISTENER_HPP_
  19. #include <fastrtps/qos/DeadlineMissedStatus.h>
  20. #include <fastdds/dds/core/status/BaseStatus.hpp>
  21. #include <fastdds/dds/core/status/PublicationMatchedStatus.hpp>
  22. #include <fastdds/dds/publisher/DataWriterListener.hpp>
  23. namespace eprosima {
  24. namespace fastdds {
  25. namespace dds {
  26. class Publisher;
  27. /**
  28. * Class PublisherListener, allows the end user to implement callbacks triggered by certain events.
  29. * It inherits all the DataWriterListener callbacks.
  30. * @ingroup FASTDDS_MODULE
  31. */
  32. class PublisherListener : public DataWriterListener
  33. {
  34. public:
  35. /**
  36. * @brief Constructor
  37. */
  38. RTPS_DllAPI PublisherListener()
  39. {
  40. }
  41. /**
  42. * @brief Destructor
  43. */
  44. RTPS_DllAPI virtual ~PublisherListener()
  45. {
  46. }
  47. };
  48. } /* namespace dds */
  49. } /* namespace fastdds */
  50. } /* namespace eprosima */
  51. #endif /* _FASTDDS_PUBLISHERLISTENER_HPP_ */