custom for >5 resources

Fork of mbedConnectorInterface by Doug Anson

Revision:
24:a6915e19814e
Parent:
2:853f9ecc12df
diff -r caa0260acc21 -r a6915e19814e api/StaticResource.h
--- a/api/StaticResource.h	Thu Mar 19 04:05:08 2015 +0000
+++ b/api/StaticResource.h	Fri Mar 20 04:08:59 2015 +0000
@@ -29,6 +29,9 @@
 // String class support
 #include <string>
 
+// DataWrapper support
+#include "DataWrapper.h"
+
 /** StaticResource is a static (GET only) resource with a value type pinned as a string type
  */
 class StaticResource : public Resource<string>
@@ -75,10 +78,18 @@
     @param p input pointer to the endpoint resources necessary for binding
     */
     virtual void bind(void *p);
+    
+    /**
+    Set the data wrapper
+    @param data_wrapper input the data wrapper instance
+    */
+    void setDataWrapper(DataWrapper *data_wrapper) { this->m_data_wrapper = data_wrapper; }
 
 protected:
+    DataWrapper *getDataWrapper() { return this->m_data_wrapper; }
 
 private:
+    DataWrapper *m_data_wrapper;
 };
 
 #endif // __STATIC_RESOURCE_H__