summaryrefslogtreecommitdiff
path: root/implementation/e2e_protection/include/e2e/profile/profile_custom/checker.hpp
diff options
context:
space:
mode:
authorJuergen Gehring <juergen.gehring@bmw.de>2017-06-19 08:03:41 -0700
committerJuergen Gehring <juergen.gehring@bmw.de>2017-06-19 08:03:41 -0700
commitcf67875117ef7b1b9a25fe1f23e8b7ba1197c934 (patch)
treee6cb18195024eccf224ffd270a924aabf2768285 /implementation/e2e_protection/include/e2e/profile/profile_custom/checker.hpp
parent5315798ff81796217b55eb8c622f154bb0a1c487 (diff)
downloadvSomeIP-cf67875117ef7b1b9a25fe1f23e8b7ba1197c934.tar.gz
vSomeIP 2.6.32.6.3
Diffstat (limited to 'implementation/e2e_protection/include/e2e/profile/profile_custom/checker.hpp')
-rw-r--r--implementation/e2e_protection/include/e2e/profile/profile_custom/checker.hpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/implementation/e2e_protection/include/e2e/profile/profile_custom/checker.hpp b/implementation/e2e_protection/include/e2e/profile/profile_custom/checker.hpp
new file mode 100644
index 0000000..00ea47c
--- /dev/null
+++ b/implementation/e2e_protection/include/e2e/profile/profile_custom/checker.hpp
@@ -0,0 +1,40 @@
+// Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef E2E_PROFILE_PROFILE_CUSTOM_CHECKER_HPP
+#define E2E_PROFILE_PROFILE_CUSTOM_CHECKER_HPP
+
+#include "../profile_custom/profile_custom.hpp"
+#include "../profile_interface/checker.hpp"
+#include <mutex>
+
+namespace e2e {
+namespace profile {
+namespace profile_custom {
+
+class profile_custom_checker final : public e2e::profile::profile_interface::checker {
+
+ public:
+ profile_custom_checker(void) = delete;
+
+ explicit profile_custom_checker(const Config &_config) :
+ config(_config) {}
+
+ virtual void check(const buffer::e2e_buffer &_buffer,
+ e2e::profile::profile_interface::generic_check_status &_generic_check_status);
+
+ private:
+ uint32_t read_crc(const buffer::e2e_buffer &_buffer) const;
+
+private:
+ Config config;
+ std::mutex check_mutex;
+
+};
+}
+}
+}
+
+#endif