comparison Framework/Messages/IMessage.h @ 1098:17660df24c36 broker

simplification of IOracleRunner
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Oct 2019 13:01:24 +0200
parents e713f1a99861
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1097:4383382db01d 1098:17660df24c36
19 **/ 19 **/
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include <boost/lexical_cast.hpp>
24 #include <boost/noncopyable.hpp> 25 #include <boost/noncopyable.hpp>
25 26
26 #include <string.h> 27 #include <string.h>
27 28
28 namespace OrthancStone 29 namespace OrthancStone
49 50
50 MessageIdentifier() : 51 MessageIdentifier() :
51 file_(NULL), 52 file_(NULL),
52 line_(0) 53 line_(0)
53 { 54 {
55 }
56
57 std::string AsString() const
58 {
59 return std::string(file_) + ":" + boost::lexical_cast<std::string>(line_);
54 } 60 }
55 61
56 bool operator< (const MessageIdentifier& other) const 62 bool operator< (const MessageIdentifier& other) const
57 { 63 {
58 if (file_ == NULL) 64 if (file_ == NULL)