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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2936 - (hide annotations) (download)
Thu Jun 3 23:04:33 2004 UTC (15 years, 6 months ago) by derek
Original Path: main/sip/resiprocate/dum/DialogId.hxx
File size: 1367 byte(s)
Changed remoteTarget and mLocalTag reference to use mId instead.
DialogSetId will construt To tag if necessary
Dialog can handle responses without tags.
1 derek 2849 #if !defined(RESIP_DIALOG_ID_HXX)
2     #define RESIP_DIALOG_ID_HXX
3 fluffy 2512
4 derek 2842 #include "resiprocate/os/Data.hxx"
5     #include "resiprocate/dum/DialogSetId.hxx"
6 ken 2556
7     namespace resip
8     {
9    
10 fluffy 2512 class DialogId
11     {
12     public:
13 ken 2556 DialogId(const SipMessage& msg );
14 derek 2842 DialogId(const Data& callId, const Data& localTag, const Data& remoteTag );
15     DialogId(const DialogSetId id, const Data& remoteTag );
16 fluffy 2512
17 derek 2842 bool operator==(const DialogId& rhs) const;
18     bool operator!=(const DialogId& rhs) const;
19     bool operator<(const DialogId& rhs) const;
20    
21 davidb 2601 const DialogSetId& getDialogSetId() const;
22 derek 2842
23 derek 2936 const Data& getCallId() const { return getDialogSetId().getCallId(); }
24     const Data& getLocalTag() const { return getDialogSetId().getLocalTag(); }
25     const Data& getRemoteTag() const { return mRemoteTag; }
26    
27 alan 2857 size_t hash() const;
28    
29 derek 2842 #if defined(HASH_MAP_NAMESPACE)
30     friend struct HASH_MAP_NAMESPACE::hash<resip::DialogId>;
31 alan 2857 #elif defined(__INTEL_COMPILER )
32 derek 2842 friend size_t hash_value(const resip::DialogId& id);
33     #endif
34 alan 2857
35 jason 2574 private:
36 derek 2849 DialogSetId mDialogSetId;
37 derek 2842 Data mRemoteTag;
38 fluffy 2512 };
39 alan 2857 }
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 fluffy 2512
52 derek 2842
53     #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27