IDS peak ICV v1.1.0
Loading...
Searching...
No Matches
peak_icv_serialization_helper.hpp
Go to the documentation of this file.
1
11#pragma once
12
15#include <peak_icv_c/types/peak_icv_simple_types.h>
16
17namespace peak
18{
19namespace icv
20{
21namespace helper
22{
23
24inline peak_icv_serialization_type MapSerializationTypeToApi(SerializationType type)
25{
26 switch (type)
27 {
29 return PEAK_ICV_SERIALIZATION_TYPE_JSON;
30 default:
31 throw NotSupportedException("The given serialization type is not supported.");
32 }
33}
34
35} /* namespace helper */
36} /* namespace icv */
37} /* namespace peak */
Thrown when a requested operation is not implemented or supported.
SerializationType
Defines the supported serialization formats for the serialization system.
@ Json
JSON (JavaScript Object Notation) format.
peak_icv_serialization_type MapSerializationTypeToApi(SerializationType type)