sipxportlib  Version 3.3
OsIntPtrMsg.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 OsIntPtrMsg_h__
13 #define OsIntPtrMsg_h__
14 
15 // SYSTEM INCLUDES
16 // APPLICATION INCLUDES
17 #include "os/OsDefs.h"
18 #include "utl/UtlContainable.h"
19 #include "os/OsMsg.h"
20 
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 
31 //:Base class for message queue buffers
32 
33 class OsIntPtrMsg : public OsMsg
34 {
35  /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37  static const UtlContainableType TYPE ;
39  /* ============================ CREATORS ================================== */
40 
41  OsIntPtrMsg(const unsigned char msgType,
42  const unsigned char msgSubType,
43  intptr_t pData1 = 0,
44  intptr_t pData2 = 0);
45  //:Constructor
46 
47  OsIntPtrMsg(const OsIntPtrMsg& rOsMsg);
48  //:Copy constructor
49 
50  virtual OsMsg* createCopy(void) const;
51  //:Create a copy of this msg object (which may be of a derived type)
52 
53  /* ============================ MANIPULATORS ============================== */
54 
55  OsIntPtrMsg& operator=(const OsIntPtrMsg& rhs);
56  //:Assignment operator
57 
58  /* ============================ ACCESSORS ================================= */
59  intptr_t getData1() const { return mpData1; }
60  intptr_t getData2() const { return mpData2; }
61 
62  void setData1(intptr_t val) { mpData1 = val; }
63  void setData2(intptr_t val) { mpData2 = val; }
64 
65  /* ============================ INQUIRY =================================== */
66 
67  /* //////////////////////////// PROTECTED ///////////////////////////////// */
68 protected:
71 
72  /* //////////////////////////// PRIVATE /////////////////////////////////// */
73 private:
74 
75 };
76 
77 /* ============================ INLINE METHODS ============================ */
78 
79 #endif // OsIntPtrMsg_h__
OsIntPtrMsg(const unsigned char msgType, const unsigned char msgSubType, intptr_t pData1=0, intptr_t pData2=0)
Definition: OsIntPtrMsg.cpp:29
void setData2(intptr_t val)
Definition: OsIntPtrMsg.h:63
void setData1(intptr_t val)
Definition: OsIntPtrMsg.h:62
const char *const UtlContainableType
Definition: UtlDefs.h:70
intptr_t mpData1
Definition: OsIntPtrMsg.h:69
Definition: OsIntPtrMsg.h:33
static const UtlContainableType TYPE
Definition: OsIntPtrMsg.h:37
virtual OsMsg * createCopy(void) const
Definition: OsIntPtrMsg.cpp:49
intptr_t mpData2
Definition: OsIntPtrMsg.h:70
OsIntPtrMsg & operator=(const OsIntPtrMsg &rhs)
Definition: OsIntPtrMsg.cpp:58
intptr_t getData2() const
Definition: OsIntPtrMsg.h:60
Definition: OsMsg.h:36
intptr_t getData1() const
Definition: OsIntPtrMsg.h:59
_W64 signed int intptr_t
Definition: stdint.h:118