{"action":"created","comment":{"url":"https://api.github.com/repos/apavlenko/vmf/pulls/comments/48602490","id":48602490,"diff_hunk":"@@ -0,0 +1,91 @@\n+/*\n+ * Copyright 2015 Intel(r) Corporation\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http ://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ *\n+ */\n+#ifndef COMPRESSOR_HPP\n+#define COMPRESSOR_HPP\n+\n+/*!\n+* \\file compressor.hpp\n+* \\brief %Compressor header file\n+*/\n+\n+#include \"vmf/metadataschema.hpp\"\n+\n+namespace vmf\n+{\n+\n+/*! \\class Compressor\n+ * \\brief Interface for all compression algorithms\n+ */\n+class VMF_EXPORT Compressor\n+{\n+public:\n+    /*!\n+     * \\brief Compress data\n+     * \\param [in] input input text data\n+     * \\param [out] output where to put binary compressed data\n+     */\n+    virtual void compress(const vmf_string& input, vmf_rawbuffer& output) = 0;\n+\n+    /*!\n+     * \\brief Decompress data\n+     * \\param [in] input binary compressed input data\n+     * \\param [out] output where to put decompressed text data\n+     */\n+    virtual void decompress(const vmf_rawbuffer& input, vmf_string& output) = 0;\n+\n+    /*!\n+     * \\brief Get the ID of current algorithm\n+     */\n+    virtual const vmf_string getId() = 0;\n+\n+    /*!\n+     * \\brief Default destructor\n+     */\n+    virtual ~Compressor()\n+    {\n+\n+    }\n+\n+    /*!\n+     * \\brief Registers new algorithm before its use in decompression.\n+     * \\param impl Pointer to the implementation of the algorithm\n+     */\n+    static void registerNew(std::shared_ptr<Compressor> impl);","path":"modules/vmfcore/include/vmf/compressor.hpp","position":67,"original_position":67,"commit_id":"7936b684761c949163c3b2967d3297807f948c78","original_commit_id":"8558e17fe86068c205a3b644612fcfbe9d751b52","user":{"login":"savuor","id":10323511,"avatar_url":"https://avatars.githubusercontent.com/u/10323511?v=3","gravatar_id":"","url":"https://api.github.com/users/savuor","html_url":"https://github.com/savuor","followers_url":"https://api.github.com/users/savuor/followers","following_url":"https://api.github.com/users/savuor/following{/other_user}","gists_url":"https://api.github.com/users/savuor/gists{/gist_id}","starred_url":"https://api.github.com/users/savuor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savuor/subscriptions","organizations_url":"https://api.github.com/users/savuor/orgs","repos_url":"https://api.github.com/users/savuor/repos","events_url":"https://api.github.com/users/savuor/events{/privacy}","received_events_url":"https://api.github.com/users/savuor/received_events","type":"User","site_admin":false},"body":"* done\r\n* `register` is a keword","created_at":"2015-12-30T13:00:15Z","updated_at":"2015-12-30T13:00:15Z","html_url":"https://github.com/apavlenko/vmf/pull/10#discussion_r48602490","pull_request_url":"https://api.github.com/repos/apavlenko/vmf/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/apavlenko/vmf/pulls/comments/48602490"},"html":{"href":"https://github.com/apavlenko/vmf/pull/10#discussion_r48602490"},"pull_request":{"href":"https://api.github.com/repos/apavlenko/vmf/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/apavlenko/vmf/pulls/10","id":53553948,"html_url":"https://github.com/apavlenko/vmf/pull/10","diff_url":"https://github.com/apavlenko/vmf/pull/10.diff","patch_url":"https://github.com/apavlenko/vmf/pull/10.patch","issue_url":"https://api.github.com/repos/apavlenko/vmf/issues/10","number":10,"state":"open","locked":false,"title":"[WIP] Compression prototype","user":{"login":"apavlenko","id":2344952,"avatar_url":"https://avatars.githubusercontent.com/u/2344952?v=3","gravatar_id":"","url":"https://api.github.com/users/apavlenko","html_url":"https://github.com/apavlenko","followers_url":"https://api.github.com/users/apavlenko/followers","following_url":"https://api.github.com/users/apavlenko/following{/other_user}","gists_url":"https://api.github.com/users/apavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/apavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apavlenko/subscriptions","organizations_url":"https://api.github.com/users/apavlenko/orgs","repos_url":"https://api.github.com/users/apavlenko/repos","events_url":"https://api.github.com/users/apavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/apavlenko/received_events","type":"User","site_admin":false},"body":"Prototype for #2 ","created_at":"2015-12-14T11:39:21Z","updated_at":"2015-12-30T13:00:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d482f13a2f24ad3744e16eea03dbe6a92b13c81a","assignee":{"login":"apavlenko","id":2344952,"avatar_url":"https://avatars.githubusercontent.com/u/2344952?v=3","gravatar_id":"","url":"https://api.github.com/users/apavlenko","html_url":"https://github.com/apavlenko","followers_url":"https://api.github.com/users/apavlenko/followers","following_url":"https://api.github.com/users/apavlenko/following{/other_user}","gists_url":"https://api.github.com/users/apavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/apavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apavlenko/subscriptions","organizations_url":"https://api.github.com/users/apavlenko/orgs","repos_url":"https://api.github.com/users/apavlenko/repos","events_url":"https://api.github.com/users/apavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/apavlenko/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/apavlenko/vmf/milestones/2","html_url":"https://github.com/apavlenko/vmf/milestones/Milestone%201","labels_url":"https://api.github.com/repos/apavlenko/vmf/milestones/2/labels","id":1464854,"number":2,"title":"Milestone 1","description":"Midterm","creator":{"login":"apavlenko","id":2344952,"avatar_url":"https://avatars.githubusercontent.com/u/2344952?v=3","gravatar_id":"","url":"https://api.github.com/users/apavlenko","html_url":"https://github.com/apavlenko","followers_url":"https://api.github.com/users/apavlenko/followers","following_url":"https://api.github.com/users/apavlenko/following{/other_user}","gists_url":"https://api.github.com/users/apavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/apavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apavlenko/subscriptions","organizations_url":"https://api.github.com/users/apavlenko/orgs","repos_url":"https://api.github.com/users/apavlenko/repos","events_url":"https://api.github.com/users/apavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/apavlenko/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":5,"state":"open","created_at":"2015-12-17T12:12:22Z","updated_at":"2015-12-29T18:13:25Z","due_on":"2016-01-30T21:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/apavlenko/vmf/pulls/10/commits","review_comments_url":"https://api.github.com/repos/apavlenko/vmf/pulls/10/comments","review_comment_url":"https://api.github.com/repos/apavlenko/vmf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apavlenko/vmf/issues/10/comments","statuses_url":"https://api.github.com/repos/apavlenko/vmf/statuses/7936b684761c949163c3b2967d3297807f948c78","head":{"label":"apavlenko:rv/compression_prototype","ref":"rv/compression_prototype","sha":"7936b684761c949163c3b2967d3297807f948c78","user":{"login":"apavlenko","id":2344952,"avatar_url":"https://avatars.githubusercontent.com/u/2344952?v=3","gravatar_id":"","url":"https://api.github.com/users/apavlenko","html_url":"https://github.com/apavlenko","followers_url":"https://api.github.com/users/apavlenko/followers","following_url":"https://api.github.com/users/apavlenko/following{/other_user}","gists_url":"https://api.github.com/users/apavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/apavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apavlenko/subscriptions","organizations_url":"https://api.github.com/users/apavlenko/orgs","repos_url":"https://api.github.com/users/apavlenko/repos","events_url":"https://api.github.com/users/apavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/apavlenko/received_events","type":"User","site_admin":false},"repo":{"id":47108203,"name":"vmf","full_name":"apavlenko/vmf","owner":{"login":"apavlenko","id":2344952,"avatar_url":"https://avatars.githubusercontent.com/u/2344952?v=3","gravatar_id":"","url":"https://api.github.com/users/apavlenko","html_url":"https://github.com/apavlenko","followers_url":"https://api.github.com/users/apavlenko/followers","following_url":"https://api.github.com/users/apavlenko/following{/other_user}","gists_url":"https://api.github.com/users/apavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/apavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apavlenko/subscriptions","organizations_url":"https://api.github.com/users/apavlenko/orgs","repos_url":"https://api.github.com/users/apavlenko/repos","events_url":"https://api.github.com/users/apavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/apavlenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apavlenko/vmf","description":"","fork":true,"url":"https://api.github.com/repos/apavlenko/vmf","forks_url":"https://api.github.com/repos/apavlenko/vmf/forks","keys_url":"https://api.github.com/repos/apavlenko/vmf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apavlenko/vmf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apavlenko/vmf/teams","hooks_url":"https://api.github.com/repos/apavlenko/vmf/hooks","issue_events_url":"https://api.github.com/repos/apavlenko/vmf/issues/events{/number}","events_url":"https://api.github.com/repos/apavlenko/vmf/events","assignees_url":"https://api.github.com/repos/apavlenko/vmf/assignees{/user}","branches_url":"https://api.github.com/repos/apavlenko/vmf/branches{/branch}","tags_url":"https://api.github.com/repos/apavlenko/vmf/tags","blobs_url":"https://api.github.com/repos/apavlenko/vmf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apavlenko/vmf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apavlenko/vmf/git/refs{/sha}","trees_url":"https://api.github.com/repos/apavlenko/vmf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apavlenko/vmf/statuses/{sha}","languages_url":"https://api.github.com/repos/apavlenko/vmf/languages","stargazers_url":"https://api.github.com/repos/apavlenko/vmf/stargazers","contributors_url":"https://api.github.com/repos/apavlenko/vmf/contributors","subscribers_url":"https://api.github.com/repos/apavlenko/vmf/subscribers","subscription_url":"https://api.github.com/repos/apavlenko/vmf/subscription","commits_url":"https://api.github.com/repos/apavlenko/vmf/commits{/sha}","git_commits_url":"https://api.github.com/repos/apavlenko/vmf/git/commits{/sha}","comments_url":"https://api.github.com/repos/apavlenko/vmf/comments{/number}","issue_comment_url":"https://api.github.com/repos/apavlenko/vmf/issues/comments{/number}","contents_url":"https://api.github.com/repos/apavlenko/vmf/contents/{+path}","compare_url":"https://api.github.com/repos/apavlenko/vmf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apavlenko/vmf/merges","archive_url":"https://api.github.com/repos/apavlenko/vmf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apavlenko/vmf/downloads","issues_url":"https://api.github.com/repos/apavlenko/vmf/issues{/number}","pulls_url":"https://api.github.com/repos/apavlenko/vmf/pulls{/number}","milestones_url":"https://api.github.com/repos/apavlenko/vmf/milestones{/number}","notifications_url":"https://api.github.com/repos/apavlenko/vmf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apavlenko/vmf/labels{/name}","releases_url":"https://api.github.com/repos/apavlenko/vmf/releases{/id}","created_at":"2015-11-30T09:26:33Z","updated_at":"2015-11-30T09:27:33Z","pushed_at":"2015-12-30T12:05:10Z","git_url":"git://github.com/apavlenko/vmf.git","ssh_url":"git@github.com:apavlenko/vmf.git","clone_url":"https://github.com/apavlenko/vmf.git","svn_url":"https://github.com/apavlenko/vmf","homepage":"http://01org.github.io/vmf/","size":30530,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":0,"default_branch":"vmf-3.0"}},"base":{"label":"apavlenko:vmf-3.0","ref":"vmf-3.0","sha":"acb0108c27ce4ebd9def09a68cf9788a9ec8682c","user":{"login":"apavlenko","id":2344952,"avatar_url":"https://avatars.githubusercontent.com/u/2344952?v=3","gravatar_id":"","url":"https://api.github.com/users/apavlenko","html_url":"https://github.com/apavlenko","followers_url":"https://api.github.com/users/apavlenko/followers","following_url":"https://api.github.com/users/apavlenko/following{/other_user}","gists_url":"https://api.github.com/users/apavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/apavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apavlenko/subscriptions","organizations_url":"https://api.github.com/users/apavlenko/orgs","repos_url":"https://api.github.com/users/apavlenko/repos","events_url":"https://api.github.com/users/apavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/apavlenko/received_events","type":"User","site_admin":false},"repo":{"id":47108203,"name":"vmf","full_name":"apavlenko/vmf","owner":{"login":"apavlenko","id":2344952,"avatar_url":"https://avatars.githubusercontent.com/u/2344952?v=3","gravatar_id":"","url":"https://api.github.com/users/apavlenko","html_url":"https://github.com/apavlenko","followers_url":"https://api.github.com/users/apavlenko/followers","following_url":"https://api.github.com/users/apavlenko/following{/other_user}","gists_url":"https://api.github.com/users/apavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/apavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apavlenko/subscriptions","organizations_url":"https://api.github.com/users/apavlenko/orgs","repos_url":"https://api.github.com/users/apavlenko/repos","events_url":"https://api.github.com/users/apavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/apavlenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apavlenko/vmf","description":"","fork":true,"url":"https://api.github.com/repos/apavlenko/vmf","forks_url":"https://api.github.com/repos/apavlenko/vmf/forks","keys_url":"https://api.github.com/repos/apavlenko/vmf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apavlenko/vmf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apavlenko/vmf/teams","hooks_url":"https://api.github.com/repos/apavlenko/vmf/hooks","issue_events_url":"https://api.github.com/repos/apavlenko/vmf/issues/events{/number}","events_url":"https://api.github.com/repos/apavlenko/vmf/events","assignees_url":"https://api.github.com/repos/apavlenko/vmf/assignees{/user}","branches_url":"https://api.github.com/repos/apavlenko/vmf/branches{/branch}","tags_url":"https://api.github.com/repos/apavlenko/vmf/tags","blobs_url":"https://api.github.com/repos/apavlenko/vmf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apavlenko/vmf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apavlenko/vmf/git/refs{/sha}","trees_url":"https://api.github.com/repos/apavlenko/vmf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apavlenko/vmf/statuses/{sha}","languages_url":"https://api.github.com/repos/apavlenko/vmf/languages","stargazers_url":"https://api.github.com/repos/apavlenko/vmf/stargazers","contributors_url":"https://api.github.com/repos/apavlenko/vmf/contributors","subscribers_url":"https://api.github.com/repos/apavlenko/vmf/subscribers","subscription_url":"https://api.github.com/repos/apavlenko/vmf/subscription","commits_url":"https://api.github.com/repos/apavlenko/vmf/commits{/sha}","git_commits_url":"https://api.github.com/repos/apavlenko/vmf/git/commits{/sha}","comments_url":"https://api.github.com/repos/apavlenko/vmf/comments{/number}","issue_comment_url":"https://api.github.com/repos/apavlenko/vmf/issues/comments{/number}","contents_url":"https://api.github.com/repos/apavlenko/vmf/contents/{+path}","compare_url":"https://api.github.com/repos/apavlenko/vmf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apavlenko/vmf/merges","archive_url":"https://api.github.com/repos/apavlenko/vmf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apavlenko/vmf/downloads","issues_url":"https://api.github.com/repos/apavlenko/vmf/issues{/number}","pulls_url":"https://api.github.com/repos/apavlenko/vmf/pulls{/number}","milestones_url":"https://api.github.com/repos/apavlenko/vmf/milestones{/number}","notifications_url":"https://api.github.com/repos/apavlenko/vmf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apavlenko/vmf/labels{/name}","releases_url":"https://api.github.com/repos/apavlenko/vmf/releases{/id}","created_at":"2015-11-30T09:26:33Z","updated_at":"2015-11-30T09:27:33Z","pushed_at":"2015-12-30T12:05:10Z","git_url":"git://github.com/apavlenko/vmf.git","ssh_url":"git@github.com:apavlenko/vmf.git","clone_url":"https://github.com/apavlenko/vmf.git","svn_url":"https://github.com/apavlenko/vmf","homepage":"http://01org.github.io/vmf/","size":30530,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":0,"default_branch":"vmf-3.0"}},"_links":{"self":{"href":"https://api.github.com/repos/apavlenko/vmf/pulls/10"},"html":{"href":"https://github.com/apavlenko/vmf/pull/10"},"issue":{"href":"https://api.github.com/repos/apavlenko/vmf/issues/10"},"comments":{"href":"https://api.github.com/repos/apavlenko/vmf/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/apavlenko/vmf/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/apavlenko/vmf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apavlenko/vmf/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/apavlenko/vmf/statuses/7936b684761c949163c3b2967d3297807f948c78"}}}}