Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
ireader.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Roc authors
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
9 //! @file roc_packet/ireader.h
10 //! @brief Packet reader interface.
11 
12 #ifndef ROC_PACKET_IREADER_H_
13 #define ROC_PACKET_IREADER_H_
14 
15 #include "roc_packet/packet.h"
16 
17 namespace roc {
18 namespace packet {
19 
20 //! Packet reader interface.
21 class IReader {
22 public:
23  virtual ~IReader();
24 
25  //! Read packet.
26  //! @returns
27  //! next available packet or NULL if there are no packets.
28  virtual PacketPtr read() = 0;
29 };
30 
31 } // namespace packet
32 } // namespace roc
33 
34 #endif // ROC_PACKET_IREADER_H_
Packet reader interface.
Definition: ireader.h:21
Root namespace.
virtual PacketPtr read()=0
Read packet.
Packet.