summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/src/policy_table/enums.cc
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2018-09-19 17:24:57 -0400
committerJackLivio <jack@livio.io>2018-09-19 17:24:57 -0400
commit55a73f739d9d92d975b9c7d95c3b3001a007c8d1 (patch)
tree39025988159c000fb4c261b657c7aee06d9c0153 /src/components/policy/policy_external/src/policy_table/enums.cc
parent78ac9a2cd006eed81fdbf273fea7dba531113830 (diff)
downloadsdl_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.cc7
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;