Support human-readable policy type names 26/35126/5
authorAleksander Zdyb <a.zdyb@samsung.com>
Mon, 9 Feb 2015 12:30:26 +0000 (13:30 +0100)
committerAleksander Zdyb <a.zdyb@samsung.com>
Mon, 23 Feb 2015 13:11:51 +0000 (14:11 +0100)
commit72e9332b407370471f0688e436e5d524a1e1b69b
treef8a731453eb067a89891dd5610a944768a15bc23
parentba91952220726c7e51f98e3c1e95b6c9dc040f0c
Support human-readable policy type names

Policy type is no longer parsed in CyadCommandlineParser,
but rather forwarded to CommandsDispatcher in raw form.

Apparent small feature, but required changes across many
layers. Refactoring of CyadCommandlineDispatcherTest was
needed in order to apply fixes to tests.

Change-Id: I9528554afdb5c0747c3f9ef550bf3362cd8c8084
16 files changed:
src/cyad/AdminPolicyParser.cpp
src/cyad/AdminPolicyParser.h
src/cyad/CMakeLists.txt
src/cyad/CommandlineParser/CyadCommand.h
src/cyad/CommandlineParser/CyadCommandlineParser.cpp
src/cyad/CommandlineParser/RawPolicyResult.h [new file with mode: 0644]
src/cyad/CommandsDispatcher.cpp
src/cyad/CommandsDispatcher.h
src/cyad/PolicyTypeTranslator.cpp [new file with mode: 0644]
src/cyad/PolicyTypeTranslator.h [new file with mode: 0644]
test/CMakeLists.txt
test/cyad/CyadCommandlineDispatcherTest.h
test/cyad/commandline.cpp
test/cyad/commandline_errors.cpp
test/cyad/commands_dispatcher.cpp
test/cyad/policy_parser.cpp