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: Resource.h
- Revision:
- 135:7f3f963cd159
- Parent:
- 134:58e7537a8c5f
- Child:
- 192:54b758a8eaaa
diff -r 58e7537a8c5f -r 7f3f963cd159 Resource.h --- a/Resource.h Fri Mar 28 16:24:12 2014 +0000 +++ b/Resource.h Fri Mar 28 17:49:10 2014 +0000 @@ -19,12 +19,11 @@ #ifndef _RESOURCE_H #define _RESOURCE_H -// ErrorHandler support -#include "ErrorHandler.h" +// BaseClass support +#include "BaseClass.h" -class Resource { +class Resource : public BaseClass { private: - ErrorHandler *m_error_handler; char m_name[RESOURCE_NAME_LEN+1]; char m_value[RESOURCE_VALUE_LEN+1]; char m_endpoint_name[PERSONALITY_NAME_LEN+1]; @@ -34,9 +33,7 @@ public: Resource(ErrorHandler *error_handler,char *ep_name,char *name,char *value,void *cb); virtual ~Resource(); - - ErrorHandler *logger(); - + char *getName(); void setName(char *name); char *getValue(); @@ -54,11 +51,7 @@ protected: char *getEndpointName(); - void setCallbackPointer(void *cb); - - - private: - int min(int value1, int value2); + void setCallbackPointer(void *cb); }; #endif // _RESOURCE_H \ No newline at end of file