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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2995 - (hide annotations) (download)
Tue Jun 15 22:15:58 2004 UTC (15 years, 7 months ago) by derek
Original Path: main/sip/resiprocate/dum/DialogId.hxx
File size: 1338 byte(s)
mainly corner cases...fixed particuarily annoying misuse of DialogSetId
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 jason 2941 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 jason 2941 const Data& getCallId() const;
24     const Data& getLocalTag() const;
25     const Data& getRemoteTag() const;
26 derek 2936
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 2995 friend std::ostream& operator<<(std::ostream&, const DialogId& id);
37 derek 2849 DialogSetId mDialogSetId;
38 derek 2842 Data mRemoteTag;
39 fluffy 2512 };
40 alan 2857 }
41     #if defined(HASH_MAP_NAMESPACE)
42     namespace HASH_MAP_NAMESPACE
43     {
44     struct hash<resip::DialogId>
45     {
46     size_t operator()(const resip::DialogId& id) const;
47     };
48     }
49     #elif defined(__INTEL_COMPILER)
50     namespace std { size_t hash_value(const resip::DialogId& id); }
51     #endif
52 fluffy 2512
53 derek 2842
54     #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27