iCub-main
Loading...
Searching...
No Matches
FactoryInterface.h
Go to the documentation of this file.
1// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3/*
4 * Copyright (C) 2009 RobotCub Consortium, European Commission FP6 Project IST-004370
5 * Authors: Lorenzo Natale
6 * website: www.robotcub.org
7 * Permission is granted to copy, distribute, and/or modify this program
8 * under the terms of the GNU General Public License, version 2 or any
9 * later version published by the Free Software Foundation.
10 *
11 * A copy of the license can be found at
12 * http://www.robotcub.org/icub/license/gpl.txt
13 *
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17 * Public License for more details
18 */
19
25#ifndef __FACTORYINTERFACE__
26#define __FACTORYINTERFACE__
27
28#include <yarp/dev/DeviceDriver.h>
29
30/* LATER: is it likely that some of these would move into iCub::dev namespace? */
31namespace yarp{
32 namespace dev {
33 class IFactoryInterface;
34 }
35}
36
43public:
44 virtual ~IFactoryInterface() {}
45
46 /* Creates a DeviceDriver object, return a valid pointer if successfull. */
47 virtual yarp::dev::DeviceDriver *createDevice(yarp::os::Searchable& config)=0;
48};
49
50
51#endif
Interface for a factory device; a device that can create objects.
virtual yarp::dev::DeviceDriver * createDevice(yarp::os::Searchable &config)=0
Copyright (C) 2008 RobotCub Consortium.