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: ResourceFactory.cpp
- Revision:
- 25:2a001b4f7024
- Parent:
- 21:cfdaee0a2b50
- Child:
- 26:791d22d43cb4
diff -r b45d4ef84a64 -r 2a001b4f7024 ResourceFactory.cpp --- a/ResourceFactory.cpp Thu Feb 27 00:23:20 2014 +0000 +++ b/ResourceFactory.cpp Thu Feb 27 04:05:31 2014 +0000 @@ -29,6 +29,12 @@ } + // get our number of resources + int ResourceFactory::numResources() { return this->m_list.size(); } + + // get the ith resource + Resource *ResourceFactory::getResource(int index) { return &(this->m_list[index]); }; + // get the error handler ErrorHandler *ResourceFactory::logger() { return this->m_error_handler; }