messagehandlerrootelement.hpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * Copyright (c) 2020 Filip Klembara (in2core)
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef RTCP_MESSAGE_HANDLER_ROOT_ELEMENT_H
  18. #define RTCP_MESSAGE_HANDLER_ROOT_ELEMENT_H
  19. #if RTC_ENABLE_MEDIA
  20. #include "messagehandlerelement.hpp"
  21. namespace rtc {
  22. /// Chainable message handler
  23. class RTC_CPP_EXPORT MessageHandlerRootElement : public MessageHandlerElement {
  24. public:
  25. MessageHandlerRootElement() { }
  26. /// Reduce multiple messages into one message
  27. /// @param messages Messages to reduce
  28. virtual message_ptr reduce(ChainedMessagesProduct messages);
  29. /// Splits message into multiple messages
  30. /// @param message Message to split
  31. virtual ChainedMessagesProduct split(message_ptr message);
  32. };
  33. } // namespace rtc
  34. #endif // RTC_ENABLE_MEDIA
  35. #endif // RTCP_MESSAGE_HANDLER_ROOT_ELEMENT_H