nsp specific components for the NSP version of the impact endpoint

Dependents:   mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet mbed_nsp_endpoint_nxp

Revision:
5:94d000e6fa70
Parent:
4:7f7fe167d9c0
Child:
6:edf306673e54
--- a/MBEDEndpoint.h	Fri Mar 28 17:08:22 2014 +0000
+++ b/MBEDEndpoint.h	Fri Mar 28 17:53:14 2014 +0000
@@ -22,8 +22,8 @@
 // MBED Ethernet Interface
 #include "EthernetInterface.h"
 
-// ErrorHandler support
-#include "ErrorHandler.h"
+// BaseClass support
+#include "BaseClass.h"
 
 // NSP Transport support
 #include "NSPTransport.h"
@@ -37,10 +37,9 @@
 // Preferences Support
 #include "Preferences.h"
   
-class MBEDEndpoint {
+class MBEDEndpoint : public BaseClass {
     private:
         EthernetInterface *m_ethernet;                                      // ethernet interface
-        ErrorHandler      *m_error_handler;                                 // our error handler
         Transport         *m_transports[NUM_TRANSPORTS];                    // our transport
         Personality       *m_personalities[NUM_PERSONALITY_INSTANCES];      // our personalities (at least 1 instance)
         char               m_endpoint_name[PERSONALITY_NAME_LEN+1];         // our endpoint name (personalities[0])
@@ -51,7 +50,7 @@
         
     public:
         MBEDEndpoint(ErrorHandler *error_handler,EthernetInterface *ethernet);
-       ~MBEDEndpoint();
+        virtual ~MBEDEndpoint();
         ResourceFactory *initResourceFactory();
         void run();
         
@@ -78,7 +77,6 @@
         bool closeTransport(int index,char *key);
         bool closeTransports();
         bool closeEthernet(); 
-        ErrorHandler *logger();
 };
 
 #endif // _MBED_ENDPOINT_H_