summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_regular/src/policy_table
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_regular/src/policy_table
parent78ac9a2cd006eed81fdbf273fea7dba531113830 (diff)
downloadsdl_core-55a73f739d9d92d975b9c7d95c3b3001a007c8d1.tar.gz
Add filtering for policy table parameters
Diffstat (limited to 'src/components/policy/policy_regular/src/policy_table')
-rw-r--r--src/components/policy/policy_regular/src/policy_table/enums.cc7
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 6f914807c5..ec92d064da 100644
--- a/src/components/policy/policy_regular/src/policy_table/enums.cc
+++ b/src/components/policy/policy_regular/src/policy_table/enums.cc
@@ -15,6 +15,8 @@ bool IsValidEnum(Priority val) {
return true;
case P_NORMAL:
return true;
+ case P_PROJECTION:
+ return true;
case P_NONE:
return true;
default:
@@ -33,6 +35,8 @@ const char* EnumToJsonString(Priority val) {
return "COMMUNICATION";
case P_NORMAL:
return "NORMAL";
+ case P_PROJECTION:
+ return "PROJECTION";
case P_NONE:
return "NONE";
default:
@@ -55,6 +59,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;