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: MBEDToIOCResourceMap.h
- Revision:
- 20:f2dbbd852e08
- Parent:
- 11:f1c9299a3ca1
- Child:
- 21:cfdaee0a2b50
diff -r 0e62467605e9 -r f2dbbd852e08 MBEDToIOCResourceMap.h --- a/MBEDToIOCResourceMap.h Wed Feb 26 07:22:26 2014 +0000 +++ b/MBEDToIOCResourceMap.h Wed Feb 26 18:59:01 2014 +0000 @@ -19,23 +19,25 @@ #ifndef _MBEDTOIOCRESOURCEMAP_H_ #define _MBEDTOIOCRESOURCEMAP_H_ -#include <vector> -using namespace std; +#include "ErrorHandler.h" +#include "MapEntry.h" -#include "MapEntry.h" +#define NUM_MAPPINGS 16 class MBEDToIOCResourceMap { private: - vector<MapEntry *> m_map; + ErrorHandler *m_error_handler; + MapEntry *m_map[NUM_MAPPINGS]; public: - MBEDToIOCResourceMap(); + MBEDToIOCResourceMap(ErrorHandler *error_handler); ~MBEDToIOCResourceMap(); char *getMBEDMappedName(char *ioc_name); private: void createMap(); + ErrorHandler *logger(); }; #endif // _MBEDTOIOCRESOURCEMAP_H_ \ No newline at end of file