sipXcallLib home page


TaoReference.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 #ifndef _TaoReference_h_
12 #define _TaoReference_h_
13 
14 #if _MSC_VER >= 1000
15 #pragma once
16 #endif // _MSC_VER >= 1000
17 
18 // SYSTEM INCLUDES
19 
20 // APPLICATION INCLUDES
21 #include "os/OsRWMutex.h"
22 #include "TaoDefs.h"
23 
24 // DEFINES
25 // MACROS
26 // EXTERNAL FUNCTIONS
27 // EXTERNAL VARIABLES
28 // CONSTANTS
29 // STRUCTS
30 // TYPEDEFS
31 // FORWARD DECLARATIONS
32 
33 //:Used to build the call originating part, establishes connection with the server
34 // through the TaoTransport. Maintains a db of listeners the client has registered.
36 {
37 /* //////////////////////////// PRIVATE /////////////////////////////////// */
38 public:
39 /* ============================ CREATORS =============================== */
40  TaoReference();
41 
42  TaoReference(const TaoReference& rTaoReference);
43  //:Copy constructor (not implemented for this class)
44 
45  virtual ~TaoReference();
46 
47 /* ============================ MANIPULATORS =========================== */
49  TaoStatus reset();
50  unsigned int add();
51 
52 /* ============================ ACCESSORS ============================== */
53  unsigned int getRef() { return mRef; }
54 
55 /* //////////////////////////// PRIVATE /////////////////////////////////// */
56 private:
57  unsigned int mRef;
58  OsRWMutex mLock; // mutex lock used to protect mTransactionCnt
59 
60 
61 };
62 
63 #endif // _TaoReference_h_
Definition: TaoReference.h:35
TaoReference()
Definition: TaoReference.cpp:22
TaoStatus reset()
Definition: TaoReference.cpp:55
unsigned int getRef()
Definition: TaoReference.h:53
unsigned int add()
Definition: TaoReference.cpp:36
TaoStatus release()
Definition: TaoReference.cpp:64
TaoStatus
Definition: TaoDefs.h:41
unsigned int mRef
Definition: TaoReference.h:57
virtual ~TaoReference()
Definition: TaoReference.cpp:27
OsRWMutex mLock
Definition: TaoReference.h:58