[common] JsonFilter prototype implementation. 28/217828/2
authorMichal Michalski <m.michalski2@partner.samsung.com>
Thu, 14 Nov 2019 16:54:50 +0000 (17:54 +0100)
committerMichal Michalski <m.michalski2@partner.samsung.com>
Tue, 19 Nov 2019 12:58:24 +0000 (13:58 +0100)
commit7e94c60a1994102b42bbfd76f40dc9b0c85a6400
treee68b173a8cb45210dfe23e5054716874d887dd1d
parentf24eb2f2761eb0bf5617174fe317454e048faebe
[common] JsonFilter prototype implementation.

In present WebAPI implementation, several modules implement their own
data filtering algorithms. This commit is an attempt to provide a common,
unified way to perform data filtering across entire API.

Design goal for this change was simplicity. I was not looking for ways
to optimize the performance, as this will require in-depth performance
testing in specific use cases.

[Verification] Unit tests for JsonFilter class has been implemented which validate
main logic.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: I6cfb9fc98f6a1be8d6364a9dfff2bf07ba239dfa
src/common/common.gyp
src/common/common_ut.gyp
src/common/json-filter.cc [new file with mode: 0644]
src/common/json-filter.h [new file with mode: 0644]
src/common/ut/json-filter.cc [new file with mode: 0644]
src/common/ut/json-filter.h [new file with mode: 0644]
src/common/ut/main.cc