diff options
author | Lutz Bichler <Lutz.Bichler@bmw.de> | 2015-06-17 11:29:46 +0200 |
---|---|---|
committer | Lutz Bichler <Lutz.Bichler@bmw.de> | 2015-06-17 11:29:46 +0200 |
commit | c52b2b094ef5844c182f097b14923764758dfe80 (patch) | |
tree | f4e0446c1f8411dca5336884e2bc10a820ef8722 /include/CommonAPI/TypeOutputStream.hpp | |
parent | 6c463fcc3dcee619925f08ea09e19a86b9e581cc (diff) | |
download | genivi-common-api-runtime-c52b2b094ef5844c182f097b14923764758dfe80.tar.gz |
CommonAPI 3.1.2
Diffstat (limited to 'include/CommonAPI/TypeOutputStream.hpp')
-rw-r--r-- | include/CommonAPI/TypeOutputStream.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/CommonAPI/TypeOutputStream.hpp b/include/CommonAPI/TypeOutputStream.hpp index ec44864..28f9d01 100644 --- a/include/CommonAPI/TypeOutputStream.hpp +++ b/include/CommonAPI/TypeOutputStream.hpp @@ -69,6 +69,10 @@ public: return get()->writeType(_value); } + inline TypeOutputStream &writeType(const Version &_value) { + return get()->writeType(_value); + } + template<typename _Type> TypeOutputStream &writeType(const Enumeration<_Type> &_value) { _Type tmpValue; @@ -80,6 +84,11 @@ public: return get()->writeType(_value); } + template<class _PolymorphicStruct> + TypeOutputStream &writeType(const std::shared_ptr<_PolymorphicStruct> &_value) { + return get()->writeType(_value); + } + template<typename... _Types> TypeOutputStream &writeType(const Variant<_Types...> &_value) { return get()->writeType(_value); @@ -176,6 +185,11 @@ TypeOutputStream<_Derived> &operator<<(TypeOutputStream<_Derived> &_output, cons return _output.writeType(_value); } +template<class _Derived, class _PolymorphicStruct> +TypeOutputStream<_Derived> &operator<<(TypeOutputStream<_Derived> &_output, const std::shared_ptr<_PolymorphicStruct> &_value) { + return _output.writeType(_value); +} + template<class _Derived, typename... _Types> TypeOutputStream<_Derived> &operator<<(TypeOutputStream<_Derived> &_output, const Variant<_Types...> &_value) { return _output.writeType(_value); |