Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
26:791d22d43cb4
Parent:
25:2a001b4f7024
Child:
40:eae89a487d86
--- a/ResourceFactory.h	Thu Feb 27 04:05:31 2014 +0000
+++ b/ResourceFactory.h	Thu Feb 27 06:04:52 2014 +0000
@@ -25,15 +25,13 @@
 // Resource support
 #include "Resource.h"
 
-// List support
-#include <vector>
-
 class ResourceFactory {
     private:
         ErrorHandler    *m_error_handler;
         
     protected:
-        vector<Resource> m_list;
+        Resource        *m_list[NUM_RESOURCES];
+        int              m_count;
     
     public:
         ResourceFactory(ErrorHandler *error_handler);