diff options
author | JackLivio <jack@livio.io> | 2018-09-19 17:24:57 -0400 |
---|---|---|
committer | JackLivio <jack@livio.io> | 2018-09-19 17:24:57 -0400 |
commit | 55a73f739d9d92d975b9c7d95c3b3001a007c8d1 (patch) | |
tree | 39025988159c000fb4c261b657c7aee06d9c0153 /src/components/policy/policy_external/src/policy_table/enums.cc | |
parent | 78ac9a2cd006eed81fdbf273fea7dba531113830 (diff) | |
download | sdl_core-55a73f739d9d92d975b9c7d95c3b3001a007c8d1.tar.gz |
Add filtering for policy table parameters
Diffstat (limited to 'src/components/policy/policy_external/src/policy_table/enums.cc')
-rw-r--r-- | src/components/policy/policy_external/src/policy_table/enums.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/policy/policy_external/src/policy_table/enums.cc b/src/components/policy/policy_external/src/policy_table/enums.cc index 5152cc38ef..6410cb79de 100644 --- a/src/components/policy/policy_external/src/policy_table/enums.cc +++ b/src/components/policy/policy_external/src/policy_table/enums.cc @@ -14,6 +14,8 @@ bool IsValidEnum(Priority val) { return true; case P_NORMAL: return true; + case P_PROJECTION: + return true; case P_NONE: return true; default: @@ -32,6 +34,8 @@ const char* EnumToJsonString(Priority val) { return "COMMUNICATION"; case P_NORMAL: return "NORMAL"; + case P_PROJECTION: + return "PROJECTION"; case P_NONE: return "NONE"; default: @@ -54,6 +58,9 @@ bool EnumFromJsonString(const std::string& literal, Priority* result) { } else if ("NORMAL" == literal) { *result = P_NORMAL; return true; + } else if ("PROJECTION" == literal) { + *result = P_PROJECTION; + return true; } else if ("NONE" == literal) { *result = P_NONE; return true; |