diff 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
line wrap: on
line diff
--- a/Framework/Messages/IMessage.h	Thu Oct 24 22:31:18 2019 +0200
+++ b/Framework/Messages/IMessage.h	Fri Oct 25 13:01:24 2019 +0200
@@ -21,6 +21,7 @@
 
 #pragma once
 
+#include <boost/lexical_cast.hpp>
 #include <boost/noncopyable.hpp>
 
 #include <string.h>
@@ -53,6 +54,11 @@
     {
     }
 
+    std::string AsString() const
+    {
+      return std::string(file_) + ":" + boost::lexical_cast<std::string>(line_);
+    }
+
     bool operator< (const MessageIdentifier& other) const
     {
       if (file_ == NULL)