Changeset 642 for BAORadio/libindi/libindi/libs/indibase/baseclient.h
- Timestamp:
- Feb 24, 2012, 12:37:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/libindi/libindi/libs/indibase/baseclient.h
r504 r642 1 /******************************************************************************* 2 Copyright(c) 2011 Jasem Mutlaq. All rights reserved. 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Library General Public 6 License version 2 as published by the Free Software Foundation. 7 8 This library is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 Library General Public License for more details. 12 13 You should have received a copy of the GNU Library General Public License 14 along with this library; see the file COPYING.LIB. If not, write to 15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 Boston, MA 02110-1301, USA. 17 *******************************************************************************/ 18 1 19 #ifndef INDIBASECLIENT_H 2 20 #define INDIBASECLIENT_H … … 4 22 #include <vector> 5 23 #include <map> 6 #include <boost/shared_ptr.hpp>7 24 #include <string> 8 25 … … 26 43 \attention All notifications functions defined in INDI::BaseMediator must be implemented in the client class even if 27 44 they are not used because these are pure virtual functions. 45 46 \see <a href=http://indilib.org/index.php?title=Learn_how_to_write_INDI_clients>INDI Client Tutorial</a> for more details. 28 47 \author Jasem Mutlaq 29 48 … … 33 52 public: 34 53 enum { INDI_DEVICE_NOT_FOUND=-1, INDI_PROPERTY_INVALID=-2, INDI_PROPERTY_DUPLICATED = -3, INDI_DISPATCH_ERROR=-4 }; 35 typedef boost::shared_ptr<INDI::BaseDriver> devicePtr;54 //typedef boost::shared_ptr<INDI::BaseDriver> devicePtr; 36 55 37 56 BaseClient(); … … 82 101 /** \returns Returns a vector of all devices created in the client. 83 102 */ 84 const vector< devicePtr> & getDrivers() const { return cDevices; }103 const vector<INDI::BaseDriver *> & getDrivers() const { return cDevices; } 85 104 86 105 /** \brief Set Binary Large Object policy mode … … 152 171 pthread_t listen_thread; 153 172 154 vector< devicePtr> cDevices;173 vector<INDI::BaseDriver *> cDevices; 155 174 vector<string> cDeviceNames; 156 175
Note: See TracChangeset
for help on using the changeset viewer.