diff options
author | Lutz Bichler <Lutz.Bichler@bmw.de> | 2020-10-27 10:02:03 +0100 |
---|---|---|
committer | Lutz Bichler <Lutz.Bichler@bmw.de> | 2020-10-27 10:02:03 +0100 |
commit | 89720d3c63bbd22cbccc80cdc92c2f2dd20193ba (patch) | |
tree | 591c45dba85c98fdd8e141827bdb6e82aaad4f59 /include/CommonAPI/InputStream.hpp | |
parent | 99ebf3461f51e4899f06457d6aafdaa4adecd278 (diff) | |
download | genivi-common-api-runtime-master.tar.gz |
Diffstat (limited to 'include/CommonAPI/InputStream.hpp')
-rw-r--r-- | include/CommonAPI/InputStream.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/CommonAPI/InputStream.hpp b/include/CommonAPI/InputStream.hpp index 0380a59..6b009a3 100644 --- a/include/CommonAPI/InputStream.hpp +++ b/include/CommonAPI/InputStream.hpp @@ -1,10 +1,10 @@ -// Copyright (C) 2013-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// Copyright (C) 2013-2020 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/. #if !defined (COMMONAPI_INTERNAL_COMPILATION) -#error "Only <CommonAPI/CommonAPI.h> can be included directly, this file may disappear or change contents." +#error "Only <CommonAPI/CommonAPI.hpp> can be included directly, this file may disappear or change contents." #endif #ifndef COMMONAPI_INPUT_STREAM_HPP_ @@ -16,6 +16,7 @@ #include <CommonAPI/Deployable.hpp> #include <CommonAPI/Deployment.hpp> #include <CommonAPI/Enumeration.hpp> +#include <CommonAPI/RangedInteger.hpp> #include <CommonAPI/Struct.hpp> #include <CommonAPI/Variant.hpp> #include <CommonAPI/Version.hpp> @@ -90,6 +91,11 @@ public: return get()->readValue(_value, _depl); } + template<class Deployment_, int minimum, int maximum> + InputStream &readValue(RangedInteger<minimum, maximum> &_value, const Deployment_ *_depl = nullptr) { + return get()->readValue(_value, _depl); + } + template<class Deployment_, typename... Types_> InputStream &readValue(Struct<Types_...> &_value, const Deployment_ *_depl = nullptr) { return get()->readValue(_value, _depl); |