/[resiprocate]/main/resip/dum/DialogId.hxx
ViewVC logotype

Contents of /main/resip/dum/DialogId.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2941 - (show annotations) (download)
Mon Jun 7 00:44:01 2004 UTC (15 years, 6 months ago) by jason
Original Path: main/sip/resiprocate/dum/DialogId.hxx
File size: 1264 byte(s)
refactored Handle code
streamlined header includes

1 #if !defined(RESIP_DIALOG_ID_HXX)
2 #define RESIP_DIALOG_ID_HXX
3
4 #include "resiprocate/os/Data.hxx"
5 #include "resiprocate/dum/DialogSetId.hxx"
6
7 namespace resip
8 {
9
10 class DialogId
11 {
12 public:
13 DialogId(const SipMessage& msg );
14 DialogId(const Data& callId, const Data& localTag, const Data& remoteTag );
15 DialogId(const DialogSetId& id, const Data& remoteTag );
16
17 bool operator==(const DialogId& rhs) const;
18 bool operator!=(const DialogId& rhs) const;
19 bool operator<(const DialogId& rhs) const;
20
21 const DialogSetId& getDialogSetId() const;
22
23 const Data& getCallId() const;
24 const Data& getLocalTag() const;
25 const Data& getRemoteTag() const;
26
27 size_t hash() const;
28
29 #if defined(HASH_MAP_NAMESPACE)
30 friend struct HASH_MAP_NAMESPACE::hash<resip::DialogId>;
31 #elif defined(__INTEL_COMPILER )
32 friend size_t hash_value(const resip::DialogId& id);
33 #endif
34
35 private:
36 DialogSetId mDialogSetId;
37 Data mRemoteTag;
38 };
39 }
40 #if defined(HASH_MAP_NAMESPACE)
41 namespace HASH_MAP_NAMESPACE
42 {
43 struct hash<resip::DialogId>
44 {
45 size_t operator()(const resip::DialogId& id) const;
46 };
47 }
48 #elif defined(__INTEL_COMPILER)
49 namespace std { size_t hash_value(const resip::DialogId& id); }
50 #endif
51
52
53 #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27