{"action":"created","comment":{"url":"https://api.github.com/repos/OPM/opm-parser/pulls/comments/57292958","id":57292958,"diff_hunk":"@@ -0,0 +1,68 @@\n+/*\n+  Copyright 2016 Statoil ASA.\n+\n+  This file is part of the Open Porous Media project (OPM).\n+\n+  OPM is free software: you can redistribute it and/or modify\n+  it under the terms of the GNU General Public License as published by\n+  the Free Software Foundation, either version 3 of the License, or\n+  (at your option) any later version.\n+\n+  OPM is distributed in the hope that it will be useful,\n+  but WITHOUT ANY WARRANTY; without even the implied warranty of\n+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+  GNU General Public License for more details.\n+\n+  You should have received a copy of the GNU General Public License\n+  along with OPM.  If not, see <http://www.gnu.org/licenses/>.\n+*/\n+\n+#ifndef MESSAGECONTAINER_H\n+#define MESSAGECONTAINER_H\n+\n+#endif // OPM_MESSAGECONTAINER_HEADER_INCLUDED\n+\n+#include <opm/parser/eclipse/Parser/MessageType.hpp>\n+\n+\n+#include <string>\n+#include <vector>\n+#include <memory>\n+\n+namespace Opm {\n+\n+    \n+    struct Location {\n+        std::string filename;\n+        int lineno;\n+    };\n+\n+\n+    struct Message {\n+        MessageType mtype;\n+        std::string message;\n+        std::unique_ptr<Location> location;\n+    };\n+\n+\n+    ///Message container is used to replace OpmLog functionalities.\n+    class MessageContainer {\n+    public:\n+        void error(const std::string& msg, const std::string& filename, const int lineno);\n+\n+        void bug(const std::string& msg, const std::string& filename, const int lineno);\n+\n+        void warning(const std::string& msg, const std::string& filename, const int lineno);\n+\n+        void info(const std::string& msg, const std::string& filename, const int lineno);\n+\n+        void debug(const std::string& msg, const std::string& filename, const int lineno);\n+\n+        void problem(const std::string& msg, const std::string& filename, const int lineno);\n+\n+\n+    private:\n+        std::vector<Message> m_message;","path":"opm/parser/eclipse/Parser/MessageContainer.hpp","position":65,"original_position":65,"commit_id":"b7248d05c4c16746c451286bff1888be721b545b","original_commit_id":"b7248d05c4c16746c451286bff1888be721b545b","user":{"login":"joakim-hove","id":1321665,"avatar_url":"https://avatars.githubusercontent.com/u/1321665?v=3","gravatar_id":"","url":"https://api.github.com/users/joakim-hove","html_url":"https://github.com/joakim-hove","followers_url":"https://api.github.com/users/joakim-hove/followers","following_url":"https://api.github.com/users/joakim-hove/following{/other_user}","gists_url":"https://api.github.com/users/joakim-hove/gists{/gist_id}","starred_url":"https://api.github.com/users/joakim-hove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joakim-hove/subscriptions","organizations_url":"https://api.github.com/users/joakim-hove/orgs","repos_url":"https://api.github.com/users/joakim-hove/repos","events_url":"https://api.github.com/users/joakim-hove/events{/privacy}","received_events_url":"https://api.github.com/users/joakim-hove/received_events","type":"User","site_admin":false},"body":"I guess this could be `<const Message>`?","created_at":"2016-03-24T09:41:18Z","updated_at":"2016-03-24T09:41:18Z","html_url":"https://github.com/OPM/opm-parser/pull/729#discussion_r57292958","pull_request_url":"https://api.github.com/repos/OPM/opm-parser/pulls/729","_links":{"self":{"href":"https://api.github.com/repos/OPM/opm-parser/pulls/comments/57292958"},"html":{"href":"https://github.com/OPM/opm-parser/pull/729#discussion_r57292958"},"pull_request":{"href":"https://api.github.com/repos/OPM/opm-parser/pulls/729"}}},"pull_request":{"url":"https://api.github.com/repos/OPM/opm-parser/pulls/729","id":63993321,"html_url":"https://github.com/OPM/opm-parser/pull/729","diff_url":"https://github.com/OPM/opm-parser/pull/729.diff","patch_url":"https://github.com/OPM/opm-parser/pull/729.patch","issue_url":"https://api.github.com/repos/OPM/opm-parser/issues/729","number":729,"state":"open","locked":false,"title":"Add message container","user":{"login":"qilicun","id":2907423,"avatar_url":"https://avatars.githubusercontent.com/u/2907423?v=3","gravatar_id":"","url":"https://api.github.com/users/qilicun","html_url":"https://github.com/qilicun","followers_url":"https://api.github.com/users/qilicun/followers","following_url":"https://api.github.com/users/qilicun/following{/other_user}","gists_url":"https://api.github.com/users/qilicun/gists{/gist_id}","starred_url":"https://api.github.com/users/qilicun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qilicun/subscriptions","organizations_url":"https://api.github.com/users/qilicun/orgs","repos_url":"https://api.github.com/users/qilicun/repos","events_url":"https://api.github.com/users/qilicun/events{/privacy}","received_events_url":"https://api.github.com/users/qilicun/received_events","type":"User","site_admin":false},"body":"This message container is used to replace OpmLog inside opm-parser in the near future.\r\n\r\nFeel free to make comments.","created_at":"2016-03-24T05:59:31Z","updated_at":"2016-03-24T09:41:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddd0d15ce62c7535fc2ba82a9a64052c9594c9be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OPM/opm-parser/pulls/729/commits","review_comments_url":"https://api.github.com/repos/OPM/opm-parser/pulls/729/comments","review_comment_url":"https://api.github.com/repos/OPM/opm-parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OPM/opm-parser/issues/729/comments","statuses_url":"https://api.github.com/repos/OPM/opm-parser/statuses/b7248d05c4c16746c451286bff1888be721b545b","head":{"label":"qilicun:add_message_container","ref":"add_message_container","sha":"b7248d05c4c16746c451286bff1888be721b545b","user":{"login":"qilicun","id":2907423,"avatar_url":"https://avatars.githubusercontent.com/u/2907423?v=3","gravatar_id":"","url":"https://api.github.com/users/qilicun","html_url":"https://github.com/qilicun","followers_url":"https://api.github.com/users/qilicun/followers","following_url":"https://api.github.com/users/qilicun/following{/other_user}","gists_url":"https://api.github.com/users/qilicun/gists{/gist_id}","starred_url":"https://api.github.com/users/qilicun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qilicun/subscriptions","organizations_url":"https://api.github.com/users/qilicun/orgs","repos_url":"https://api.github.com/users/qilicun/repos","events_url":"https://api.github.com/users/qilicun/events{/privacy}","received_events_url":"https://api.github.com/users/qilicun/received_events","type":"User","site_admin":false},"repo":{"id":17739335,"name":"opm-parser","full_name":"qilicun/opm-parser","owner":{"login":"qilicun","id":2907423,"avatar_url":"https://avatars.githubusercontent.com/u/2907423?v=3","gravatar_id":"","url":"https://api.github.com/users/qilicun","html_url":"https://github.com/qilicun","followers_url":"https://api.github.com/users/qilicun/followers","following_url":"https://api.github.com/users/qilicun/following{/other_user}","gists_url":"https://api.github.com/users/qilicun/gists{/gist_id}","starred_url":"https://api.github.com/users/qilicun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qilicun/subscriptions","organizations_url":"https://api.github.com/users/qilicun/orgs","repos_url":"https://api.github.com/users/qilicun/repos","events_url":"https://api.github.com/users/qilicun/events{/privacy}","received_events_url":"https://api.github.com/users/qilicun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qilicun/opm-parser","description":"","fork":true,"url":"https://api.github.com/repos/qilicun/opm-parser","forks_url":"https://api.github.com/repos/qilicun/opm-parser/forks","keys_url":"https://api.github.com/repos/qilicun/opm-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qilicun/opm-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qilicun/opm-parser/teams","hooks_url":"https://api.github.com/repos/qilicun/opm-parser/hooks","issue_events_url":"https://api.github.com/repos/qilicun/opm-parser/issues/events{/number}","events_url":"https://api.github.com/repos/qilicun/opm-parser/events","assignees_url":"https://api.github.com/repos/qilicun/opm-parser/assignees{/user}","branches_url":"https://api.github.com/repos/qilicun/opm-parser/branches{/branch}","tags_url":"https://api.github.com/repos/qilicun/opm-parser/tags","blobs_url":"https://api.github.com/repos/qilicun/opm-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qilicun/opm-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qilicun/opm-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/qilicun/opm-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qilicun/opm-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/qilicun/opm-parser/languages","stargazers_url":"https://api.github.com/repos/qilicun/opm-parser/stargazers","contributors_url":"https://api.github.com/repos/qilicun/opm-parser/contributors","subscribers_url":"https://api.github.com/repos/qilicun/opm-parser/subscribers","subscription_url":"https://api.github.com/repos/qilicun/opm-parser/subscription","commits_url":"https://api.github.com/repos/qilicun/opm-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/qilicun/opm-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/qilicun/opm-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/qilicun/opm-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/qilicun/opm-parser/contents/{+path}","compare_url":"https://api.github.com/repos/qilicun/opm-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qilicun/opm-parser/merges","archive_url":"https://api.github.com/repos/qilicun/opm-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qilicun/opm-parser/downloads","issues_url":"https://api.github.com/repos/qilicun/opm-parser/issues{/number}","pulls_url":"https://api.github.com/repos/qilicun/opm-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/qilicun/opm-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/qilicun/opm-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qilicun/opm-parser/labels{/name}","releases_url":"https://api.github.com/repos/qilicun/opm-parser/releases{/id}","deployments_url":"https://api.github.com/repos/qilicun/opm-parser/deployments","created_at":"2014-03-14T08:04:45Z","updated_at":"2014-09-23T06:41:34Z","pushed_at":"2016-03-24T05:56:10Z","git_url":"git://github.com/qilicun/opm-parser.git","ssh_url":"git@github.com:qilicun/opm-parser.git","clone_url":"https://github.com/qilicun/opm-parser.git","svn_url":"https://github.com/qilicun/opm-parser","homepage":null,"size":5898,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OPM:master","ref":"master","sha":"1611f0d12c056a6a641e61882c026e132db0767f","user":{"login":"OPM","id":1827197,"avatar_url":"https://avatars.githubusercontent.com/u/1827197?v=3","gravatar_id":"","url":"https://api.github.com/users/OPM","html_url":"https://github.com/OPM","followers_url":"https://api.github.com/users/OPM/followers","following_url":"https://api.github.com/users/OPM/following{/other_user}","gists_url":"https://api.github.com/users/OPM/gists{/gist_id}","starred_url":"https://api.github.com/users/OPM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OPM/subscriptions","organizations_url":"https://api.github.com/users/OPM/orgs","repos_url":"https://api.github.com/users/OPM/repos","events_url":"https://api.github.com/users/OPM/events{/privacy}","received_events_url":"https://api.github.com/users/OPM/received_events","type":"Organization","site_admin":false},"repo":{"id":8604178,"name":"opm-parser","full_name":"OPM/opm-parser","owner":{"login":"OPM","id":1827197,"avatar_url":"https://avatars.githubusercontent.com/u/1827197?v=3","gravatar_id":"","url":"https://api.github.com/users/OPM","html_url":"https://github.com/OPM","followers_url":"https://api.github.com/users/OPM/followers","following_url":"https://api.github.com/users/OPM/following{/other_user}","gists_url":"https://api.github.com/users/OPM/gists{/gist_id}","starred_url":"https://api.github.com/users/OPM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OPM/subscriptions","organizations_url":"https://api.github.com/users/OPM/orgs","repos_url":"https://api.github.com/users/OPM/repos","events_url":"https://api.github.com/users/OPM/events{/privacy}","received_events_url":"https://api.github.com/users/OPM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OPM/opm-parser","description":"","fork":false,"url":"https://api.github.com/repos/OPM/opm-parser","forks_url":"https://api.github.com/repos/OPM/opm-parser/forks","keys_url":"https://api.github.com/repos/OPM/opm-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OPM/opm-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OPM/opm-parser/teams","hooks_url":"https://api.github.com/repos/OPM/opm-parser/hooks","issue_events_url":"https://api.github.com/repos/OPM/opm-parser/issues/events{/number}","events_url":"https://api.github.com/repos/OPM/opm-parser/events","assignees_url":"https://api.github.com/repos/OPM/opm-parser/assignees{/user}","branches_url":"https://api.github.com/repos/OPM/opm-parser/branches{/branch}","tags_url":"https://api.github.com/repos/OPM/opm-parser/tags","blobs_url":"https://api.github.com/repos/OPM/opm-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OPM/opm-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OPM/opm-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/OPM/opm-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OPM/opm-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/OPM/opm-parser/languages","stargazers_url":"https://api.github.com/repos/OPM/opm-parser/stargazers","contributors_url":"https://api.github.com/repos/OPM/opm-parser/contributors","subscribers_url":"https://api.github.com/repos/OPM/opm-parser/subscribers","subscription_url":"https://api.github.com/repos/OPM/opm-parser/subscription","commits_url":"https://api.github.com/repos/OPM/opm-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/OPM/opm-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/OPM/opm-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/OPM/opm-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/OPM/opm-parser/contents/{+path}","compare_url":"https://api.github.com/repos/OPM/opm-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OPM/opm-parser/merges","archive_url":"https://api.github.com/repos/OPM/opm-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OPM/opm-parser/downloads","issues_url":"https://api.github.com/repos/OPM/opm-parser/issues{/number}","pulls_url":"https://api.github.com/repos/OPM/opm-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/OPM/opm-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/OPM/opm-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OPM/opm-parser/labels{/name}","releases_url":"https://api.github.com/repos/OPM/opm-parser/releases{/id}","deployments_url":"https://api.github.com/repos/OPM/opm-parser/deployments","created_at":"2013-03-06T13:39:46Z","updated_at":"2016-03-01T13:06:07Z","pushed_at":"2016-03-24T05:59:31Z","git_url":"git://github.com/OPM/opm-parser.git","ssh_url":"git@github.com:OPM/opm-parser.git","clone_url":"https://github.com/OPM/opm-parser.git","svn_url":"https://github.com/OPM/opm-parser","homepage":null,"size":6866,"stargazers_count":7,"watchers_count":7,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":8,"forks":29,"open_issues":8,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OPM/opm-parser/pulls/729"},"html":{"href":"https://github.com/OPM/opm-parser/pull/729"},"issue":{"href":"https://api.github.com/repos/OPM/opm-parser/issues/729"},"comments":{"href":"https://api.github.com/repos/OPM/opm-parser/issues/729/comments"},"review_comments":{"href":"https://api.github.com/repos/OPM/opm-parser/pulls/729/comments"},"review_comment":{"href":"https://api.github.com/repos/OPM/opm-parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OPM/opm-parser/pulls/729/commits"},"statuses":{"href":"https://api.github.com/repos/OPM/opm-parser/statuses/b7248d05c4c16746c451286bff1888be721b545b"}}}}