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

Committer:
ansond
Date:
Mon Feb 24 19:27:34 2014 +0000
Revision:
2:4d81c828b230
Parent:
1:5d332fa199ce
Child:
4:3176f927618d
fixes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 1:5d332fa199ce 1 /* Copyright C2013 Doug Anson, MIT License
ansond 1:5d332fa199ce 2 *
ansond 1:5d332fa199ce 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ansond 1:5d332fa199ce 4 * and associated documentation files the "Software", to deal in the Software without restriction,
ansond 1:5d332fa199ce 5 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ansond 1:5d332fa199ce 6 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ansond 1:5d332fa199ce 7 * furnished to do so, subject to the following conditions:
ansond 1:5d332fa199ce 8 *
ansond 1:5d332fa199ce 9 * The above copyright notice and this permission notice shall be included in all copies or
ansond 1:5d332fa199ce 10 * substantial portions of the Software.
ansond 1:5d332fa199ce 11 *
ansond 1:5d332fa199ce 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ansond 1:5d332fa199ce 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ansond 1:5d332fa199ce 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ansond 1:5d332fa199ce 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ansond 1:5d332fa199ce 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ansond 1:5d332fa199ce 17 */
ansond 1:5d332fa199ce 18
ansond 1:5d332fa199ce 19 #include "ResourceFactory.h"
ansond 1:5d332fa199ce 20
ansond 1:5d332fa199ce 21 // default constructor
ansond 1:5d332fa199ce 22 ResourceFactory::ResourceFactory(ErrorHandler *error_handler) {
ansond 1:5d332fa199ce 23 this->m_error_handler = error_handler;
ansond 1:5d332fa199ce 24 }
ansond 1:5d332fa199ce 25
ansond 1:5d332fa199ce 26 // default destructor
ansond 1:5d332fa199ce 27 ResourceFactory::~ResourceFactory() {
ansond 1:5d332fa199ce 28
ansond 1:5d332fa199ce 29 }
ansond 1:5d332fa199ce 30
ansond 1:5d332fa199ce 31 // get the error handler
ansond 2:4d81c828b230 32 ErrorHandler *ResourceFactory::logger() { return this->m_error_handler; }
ansond 1:5d332fa199ce 33
ansond 1:5d332fa199ce 34 // create resources (base class does nothing)
ansond 1:5d332fa199ce 35 void ResourceFactory::createResources() { ; }