Mercurial > hg > orthanc-stone
comparison Framework/Messages/IMessage.h @ 1059:e713f1a99861 broker
replacing MessageBroker by weak_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Oct 2019 17:08:34 +0200 |
parents | f0008c55e5f7 |
children | 17660df24c36 |
comparison
equal
deleted
inserted
replaced
1058:a36c47487a70 | 1059:e713f1a99861 |
---|---|
31 { | 31 { |
32 private: | 32 private: |
33 const char* file_; | 33 const char* file_; |
34 int line_; | 34 int line_; |
35 | 35 |
36 bool IsEqual(const MessageIdentifier& other) const | |
37 { | |
38 return (line_ == other.line_ && | |
39 strcmp(file_, other.file_) == 0); | |
40 } | |
41 | |
36 public: | 42 public: |
37 MessageIdentifier(const char* file, | 43 MessageIdentifier(const char* file, |
38 int line) : | 44 int line) : |
39 file_(file), | 45 file_(file), |
40 line_(line) | 46 line_(line) |
59 } | 65 } |
60 else | 66 else |
61 { | 67 { |
62 return strcmp(file_, other.file_) < 0; | 68 return strcmp(file_, other.file_) < 0; |
63 } | 69 } |
70 } | |
71 | |
72 bool operator== (const MessageIdentifier& other) const | |
73 { | |
74 return IsEqual(other); | |
75 } | |
76 | |
77 bool operator!= (const MessageIdentifier& other) const | |
78 { | |
79 return !IsEqual(other); | |
64 } | 80 } |
65 }; | 81 }; |
66 | 82 |
67 | 83 |
68 /** | 84 /** |