sipxmedialib  Version 3.3
StreamQueueMsg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2004-2006 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
9 // Licensed to SIPfoundry under a Contributor Agreement.
10 //
11 // $$
13 
14 
15 #ifndef _StreamQueueMsg_h_
16 #define _StreamQueueMsg_h_
17 
18 // SYSTEM INCLUDES
19 
20 // APPLICATION INCLUDES
21 #include "os/OsDefs.h"
22 #include "os/OsSysLog.h"
23 #include "os/OsMsg.h"
24 
25 // DEFINES
26 // MACROS
27 // EXTERNAL FUNCTIONS
28 // EXTERNAL VARIABLES
29 // CONSTANTS
30 // STRUCTS
31 // TYPEDEFS
32 // FORWARD DECLARATIONS
33 
34 //:A StreamQueueMsg is a container for a frames worth of data. These Msgs are
35 //:copied into the StreamQueueMsg to avoid dynamic memory allocation. Msgs are
36 //:designed to be pooled.
37 class StreamQueueMsg : public OsMsg
38 {
39 /* //////////////////////////// PUBLIC //////////////////////////////////// */
40 public:
41 
42  typedef enum
43  {
47 
48 /* ============================ CREATORS ================================== */
50 
51  StreamQueueMsg() ;
52  //:Constructor
53 
54  StreamQueueMsg(const StreamQueueMsg& rStreamQueueMsg);
55  //:Copy constructor
56 
57  virtual OsMsg* createCopy(void) const;
58  //:Create a copy of this msg object (which may be of a derived type)
59 
60  virtual
62  //:Destructor
63 
65 
66 /* ============================ MANIPULATORS ============================== */
68 
70  //:Assignment operator
71 
72  void setSamples(const short* pSamples);
73  //:Set the sample data for this message
74 
76 
77 /* ============================ ACCESSORS ================================= */
79 
80 
81  UtlBoolean getSamples(short* pSamples) const ;
82  //:Get the sample data for this message
83 
85 
86 /* ============================ INQUIRY =================================== */
88 
89 
91 
92 /* //////////////////////////// PROTECTED ///////////////////////////////// */
93 protected:
94 
95 /* //////////////////////////// PRIVATE /////////////////////////////////// */
96 private:
97  short mSamples[80] ;
98 
99 };
100 
101 /* ============================ INLINE METHODS ============================ */
102 
103 #endif /* _StreamQueueMsg_h_ */
StreamQueueMsg & operator=(const StreamQueueMsg &rhs)
Definition: StreamQueueMsg.cpp:59
short mSamples[80]
Definition: StreamQueueMsg.h:97
StreamQueueMsg()
Definition: StreamQueueMsg.cpp:28
virtual OsMsg * createCopy(void) const
Definition: StreamQueueMsg.cpp:45
Definition: StreamQueueMsg.h:44
void setSamples(const short *pSamples)
Definition: StreamQueueMsg.cpp:72
UtlBoolean getSamples(short *pSamples) const
Definition: StreamQueueMsg.cpp:81
virtual ~StreamQueueMsg()
Definition: StreamQueueMsg.cpp:52
Definition: StreamQueueMsg.h:37
StreamQueueMsgSubTypes
Definition: StreamQueueMsg.h:42
Definition: StreamQueueMsg.h:45