summaryrefslogtreecommitdiff
path: root/implementation/runtime/src/runtime_impl.cpp
diff options
context:
space:
mode:
authorJürgen Gehring <Juergen.Gehring@bmw.de>2016-09-20 03:59:53 -0700
committerJürgen Gehring <Juergen.Gehring@bmw.de>2016-09-20 03:59:53 -0700
commit273814c76be4a8f906dc053492529b8d53b9e807 (patch)
treee7160dc68fe3f478a0c5c86aaccaeb620d528b63 /implementation/runtime/src/runtime_impl.cpp
parent4c5d160362d8693aed8abd642212e68c9778bbda (diff)
downloadvSomeIP-273814c76be4a8f906dc053492529b8d53b9e807.tar.gz
vSomeIP 2.2.42.2.4
Diffstat (limited to 'implementation/runtime/src/runtime_impl.cpp')
-rw-r--r--implementation/runtime/src/runtime_impl.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/implementation/runtime/src/runtime_impl.cpp b/implementation/runtime/src/runtime_impl.cpp
index 2131da5..4943b6d 100644
--- a/implementation/runtime/src/runtime_impl.cpp
+++ b/implementation/runtime/src/runtime_impl.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// Copyright (C) 2014-2016 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/.
@@ -12,8 +12,20 @@
namespace vsomeip {
+std::map<std::string, std::string> runtime_impl::properties_;
std::shared_ptr<runtime> runtime_impl::the_runtime_ = std::make_shared<runtime_impl>();
+std::string runtime_impl::get_property(const std::string &_name) {
+ auto found_property = properties_.find(_name);
+ if (found_property != properties_.end())
+ return found_property->second;
+ return "";
+}
+
+void runtime_impl::set_property(const std::string &_name, const std::string &_value) {
+ properties_[_name] = _value;
+}
+
std::shared_ptr<runtime> runtime_impl::get() {
return the_runtime_;
}