Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: ResourceFactory.h
- Revision:
- 7:36ec6469949e
- Parent:
- 6:9a4085eeac52
- Child:
- 8:d7ea38b0e131
--- a/ResourceFactory.h Mon Feb 24 21:01:32 2014 +0000 +++ b/ResourceFactory.h Mon Feb 24 22:22:57 2014 +0000 @@ -31,6 +31,8 @@ class ResourceFactory { private: ErrorHandler *m_error_handler; + + protected: vector<Resource> m_list; public: @@ -39,11 +41,12 @@ ErrorHandler *logger(); - virtual void createResources(char *endpoint_name); + virtual void createResources(char *endpoint_name); + char *getResourceValue(char *name); - void createResource(char *endpoint_name,char *name,char *value); + protected: virtual void createResource(char *endpoint_name,char *name,char *value,void *internals); - char *getResourceValue(char *name); + void createResource(char *name,char *value); };