sipxportlib  Version 3.3
OsPtrMsg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _OsPtrMsg_h_
13 #define _OsPtrMsg_h_
14 
15 // SYSTEM INCLUDES
16 
17 // APPLICATION INCLUDES
18 #include "os/OsDefs.h"
19 #include "utl/UtlContainable.h"
20 #include "os/OsMsg.h"
21 
22 
23 // DEFINES
24 // MACROS
25 // EXTERNAL FUNCTIONS
26 // EXTERNAL VARIABLES
27 // CONSTANTS
28 // STRUCTS
29 // TYPEDEFS
30 // FORWARD DECLARATIONS
31 
32 //:Base class for message queue buffers
33 
34 class OsPtrMsg : public OsMsg
35 {
36 /* //////////////////////////// PUBLIC //////////////////////////////////// */
37 public:
38  static const UtlContainableType TYPE ;
40 /* ============================ CREATORS ================================== */
41 
42  OsPtrMsg(const unsigned char msgType,
43  const unsigned char msgSubType,
44  void* pData,
45  void* pData2 = NULL);
46  //:Constructor
47 
48  OsPtrMsg(const OsPtrMsg& rOsMsg);
49  //:Copy constructor
50 
51  virtual OsMsg* createCopy(void) const;
52  //:Create a copy of this msg object (which may be of a derived type)
53 
54 /* ============================ MANIPULATORS ============================== */
55 
56  OsPtrMsg& operator=(const OsPtrMsg& rhs);
57  //:Assignment operator
58 
59 
60 /* ============================ ACCESSORS ================================= */
61  void* getPtr();
62  void* getPtr2();
63 
64 
65 /* ============================ INQUIRY =================================== */
66 
67 /* //////////////////////////// PROTECTED ///////////////////////////////// */
68 protected:
69  void* mpData;
70  void* mpData2;
71 
72 /* //////////////////////////// PRIVATE /////////////////////////////////// */
73 private:
74 
75 
76 };
77 
78 /* ============================ INLINE METHODS ============================ */
79 
80 #endif // _OsPtrMsg_h_
void * mpData2
Definition: OsPtrMsg.h:70
void * getPtr()
Definition: OsPtrMsg.cpp:73
void * getPtr2()
Definition: OsPtrMsg.cpp:78
virtual OsMsg * createCopy(void) const
Definition: OsPtrMsg.cpp:49
OsPtrMsg & operator=(const OsPtrMsg &rhs)
Definition: OsPtrMsg.cpp:59
#define NULL
Definition: UtlDefs.h:29
const char *const UtlContainableType
Definition: UtlDefs.h:70
static const UtlContainableType TYPE
Definition: OsPtrMsg.h:38
void * mpData
Definition: OsPtrMsg.h:69
OsPtrMsg(const unsigned char msgType, const unsigned char msgSubType, void *pData, void *pData2=NULL)
Definition: OsPtrMsg.cpp:29
Definition: OsMsg.h:36
Definition: OsPtrMsg.h:34