~ubuntu-branches/ubuntu/trusty/libindi/trusty

« back to all changes in this revision

Viewing changes to libs/indibase/baseclient.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-06-19 10:03:46 UTC
  • mfrom: (1.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120619100346-ujktpfpl7ic94xjt
Tags: 0.9.1-2ubuntu1
* Resynchronize with Debian. Remaining change:
* Build-depend on libfli-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
3
21
 
4
22
#include <vector>
5
23
#include <map>
6
 
#include <boost/shared_ptr.hpp>
7
24
#include <string>
8
25
 
9
26
#include "indiapi.h"
25
42
 
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
 
30
49
 */
32
51
{
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();
38
57
    ~BaseClient();
81
100
 
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
87
106
 
151
170
    // Thread for listenINDI()
152
171
    pthread_t listen_thread;
153
172
 
154
 
    vector<devicePtr> cDevices;
 
173
    vector<INDI::BaseDriver *> cDevices;
155
174
    vector<string> cDeviceNames;
156
175
 
157
176
    string cServer;