Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027 C12832 EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: EmulatedResourceFactory.h
- Revision:
- 39:bd5b2bcd2dcc
- Parent:
- 8:45f9a920e82c
- Child:
- 41:36c59c3cd6f2
--- a/EmulatedResourceFactory.h Sat Mar 01 06:15:30 2014 +0000
+++ b/EmulatedResourceFactory.h Sat Mar 01 07:16:56 2014 +0000
@@ -28,15 +28,23 @@
// ErrorHandler support
#include "ErrorHandler.h"
+// Resource Initializer callback structure
+typedef void (*resourceInitializer)(Resource *);
+
class EmulatedResourceFactory : public ResourceFactory {
public:
- EmulatedResourceFactory(ErrorHandler *error_handler);
+ EmulatedResourceFactory(ErrorHandler *error_handler,void *endpoint);
virtual ~EmulatedResourceFactory();
virtual void createResources(char *endpoint_name);
- bool setResourceValue(char *name, char *value);
-};
+ bool setResourceValue3(char *name, char *value);
+
+ protected:
+ virtual void createResource(char *name,char *value);
+ virtual void createResource(char *endpoint_name,char *name,char *value,void *cb);
+ void createResource(char *name,char *value,resourceInitializer *initializer);
+ };
#endif // _EMULATED_RESOURCE_FACTORY_H_
\ No newline at end of file