presence: Sensor generation framework
Add the framework necessary to construct the presence sensor specific to
the type of method needed for that type of sensor. This uses the method
type to index into a map of types-to-functions where the function will
return the pointer associated to the entry based on the method type.
Tested:
Supported method types produce no error
Unsupported method types throw exception
Change-Id: I7e583df5747561d14e124cb0762c1be0dcb8c187
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
2 files changed