sensord: declare sensor types by using macro for converting type to 44/65944/3
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 12 Apr 2016 15:30:35 +0000 (00:30 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Thu, 14 Apr 2016 08:29:50 +0000 (17:29 +0900)
commit0484ca3600234e0cf9a4e1a0bb38aeec00264fdf
tree93bf38cd04b11f525a3a9eaf827cb63159f2b2af
parent8f81a57c42640ac168f9dafa4f5d15ff785dc8b9
sensord: declare sensor types by using macro for converting type to
string

- added macros in enum_factory.h
- DECLARE_ENUM
- DECLARE_ENUM_UTIL
- GENERATE_ENUM_UTIL

- although it is hard to understand, it can reduce so many duplicated codes.

Change-Id: Ice4436e5d232612e09e67aa9fdab4c2ac30a4ba4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/enum_factory.h [new file with mode: 0644]
src/shared/sensor_types.cpp [new file with mode: 0644]
src/shared/sensor_types.h