diff options
author | Ira Lytvynenko <ILytvynenko@luxoft.com> | 2018-02-27 12:55:10 +0200 |
---|---|---|
committer | Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> | 2018-06-26 13:47:19 +0300 |
commit | 0a3ec8354c9100b9492a3ecc16c61a498549b2f3 (patch) | |
tree | a5418832ddc38089c798206706ecc0ce81aca50f /src/components/policy/policy_regular/src/policy_table/enums.cc | |
parent | 22d3d2e92cb084d4987e52f148b1328e7a843952 (diff) | |
download | sdl_core-0a3ec8354c9100b9492a3ecc16c61a498549b2f3.tar.gz |
New RC module SEAT
Diffstat (limited to 'src/components/policy/policy_regular/src/policy_table/enums.cc')
-rw-r--r-- | src/components/policy/policy_regular/src/policy_table/enums.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/policy/policy_regular/src/policy_table/enums.cc b/src/components/policy/policy_regular/src/policy_table/enums.cc index 2949ef315b..dabba24227 100644 --- a/src/components/policy/policy_regular/src/policy_table/enums.cc +++ b/src/components/policy/policy_regular/src/policy_table/enums.cc @@ -627,6 +627,8 @@ bool IsValidEnum(ModuleType val) { return true; case MT_RADIO: return true; + case MT_SEAT: + return true; default: return false; } @@ -637,6 +639,8 @@ const char* EnumToJsonString(ModuleType val) { return "CLIMATE"; case MT_RADIO: return "RADIO"; + case MT_SEAT: + return "SEAT"; default: return ""; } @@ -649,6 +653,9 @@ bool EnumFromJsonString(const std::string& literal, ModuleType* result) { } else if ("RADIO" == literal) { *result = MT_RADIO; return true; + } else if ("SEAT" == literal) { + *result = MT_SEAT; + return true; } else { return false; } |