mediahandlerrootelement.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Copyright (c) 2020 Filip Klembara (in2core)
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library 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 GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef RTC_MEDIA_HANDLER_ROOT_ELEMENT_H
  19. #define RTC_MEDIA_HANDLER_ROOT_ELEMENT_H
  20. #if RTC_ENABLE_MEDIA
  21. #include "mediahandlerelement.hpp"
  22. namespace rtc {
  23. /// Chainable message handler
  24. class RTC_CPP_EXPORT MediaHandlerRootElement : public MediaHandlerElement {
  25. public:
  26. MediaHandlerRootElement() {}
  27. /// Reduce multiple messages into one message
  28. /// @param messages Messages to reduce
  29. virtual message_ptr reduce(ChainedMessagesProduct messages);
  30. /// Splits message into multiple messages
  31. /// @param message Message to split
  32. virtual ChainedMessagesProduct split(message_ptr message);
  33. };
  34. } // namespace rtc
  35. #endif // RTC_ENABLE_MEDIA
  36. #endif // RTC_MEDIA_HANDLER_ROOT_ELEMENT_H