Debian Codegraph @

indi_starbook.h

raw symbols SCIP
1 /*
2 Starbook mount driver
3
4 Copyright (C) 2018 Norbert Szulc (not7cd)
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
20 */
21
22 #pragma once
23
24 #include <inditelescope.h>
25 #include <curl/curl.h>
26 #include <memory>
27 #include "starbook_types.h"cxx . . $ `<file>/starbook_types.h`/
28 #include "connectioncurl.h"cxx . . $ `<file>/connectioncurl.h`/
29 #include "command_interface.h"cxx . . $ `<file>/command_interface.h`/
30
31 class StarbookDrivercxx . . $ StarbookDriver# : public INDIcxx . . $ INDI/::Telescopecxx . . $ INDI/Telescope#
32 {
33 public:
34 StarbookDrivercxx . . $ StarbookDriver#StarbookDriver(49f6e7a06ebc5aa8).();
35
36 ~cxx . . $ StarbookDriver#`~StarbookDriver`(49f6e7a06ebc5aa8).StarbookDrivercxx . . $ StarbookDriver#() override;
37
38 bool initPropertiescxx . . $ StarbookDriver#initProperties(c9857a73d68e59ba).() override;
39
40 bool updatePropertiescxx . . $ StarbookDriver#updateProperties(c9857a73d68e59ba).() override;
41
42 bool ReadScopeStatuscxx . . $ StarbookDriver#ReadScopeStatus(c9857a73d68e59ba).() override;
43
44 bool ISNewSwitchcxx . . $ StarbookDriver#ISNewSwitch(e439c05866add404).(const char *dev, const char *name, ISStatecxx . . $ ISState# *states, char **names, int n) override;
45
46 private:
47 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<starbookcxx . . $ starbook/::CommandInterfacecxx . . $ starbook/CommandInterface#> cmd_interfacecxx . . $ StarbookDriver#cmd_interface.;
48
49 Connectioncxx . . $ Connection/::Curlcxx . . $ Connection/Curl# *curlConnectioncxx . . $ StarbookDriver#curlConnection. = nullptr;
50
51 starbookcxx . . $ starbook/::StarbookStatecxx . . $ starbook/StarbookState# last_known_statecxx . . $ StarbookDriver#last_known_state.;
52
53 int failed_rescxx . . $ StarbookDriver#failed_res.;
54
55 void LogResponsecxx . . $ StarbookDriver#LogResponse(5aaa3b9f7719b0d2).(const stdcxx . . $ std/::stringcxx . . $ std/string# &cmd, const starbookcxx . . $ starbook/::ResponseCodecxx . . $ starbook/ResponseCode# &rc);
56
57 public:
58 void TimerHitcxx . . $ StarbookDriver#TimerHit(49f6e7a06ebc5aa8).() override;
59
60 protected:
61 ITextcxx . . $ IText# VersionTcxx . . $ StarbookDriver#VersionT.[1]{};
62
63 ITextVectorPropertycxx . . $ ITextVectorProperty# VersionTPcxx . . $ StarbookDriver#VersionTP.;
64
65 ITextcxx . . $ IText# StateTcxx . . $ StarbookDriver#StateT.[1]{};
66
67 ITextVectorPropertycxx . . $ ITextVectorProperty# StateTPcxx . . $ StarbookDriver#StateTP.;
68
69 ISwitchcxx . . $ ISwitch# StartScxx . . $ StarbookDriver#StartS.[1];
70
71 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# StartSPcxx . . $ StarbookDriver#StartSP.;
72
73 bool Connectcxx . . $ StarbookDriver#Connect(c9857a73d68e59ba).() override;
74
75 bool Disconnectcxx . . $ StarbookDriver#Disconnect(c9857a73d68e59ba).() override;
76
77 bool Handshakecxx . . $ StarbookDriver#Handshake(c9857a73d68e59ba).() override;
78
79 const char *getDefaultNamecxx . . $ StarbookDriver#getDefaultName(33a1f659e94feb42).() override;
80
81 bool Gotocxx . . $ StarbookDriver#Goto(828b76dce88fac).(double ra, double dec) override;
82
83 bool Synccxx . . $ StarbookDriver#Sync(828b76dce88fac).(double ra, double dec) override;
84
85 bool MoveNScxx . . $ StarbookDriver#MoveNS(ffb1bb92c4b05851).(INDI_DIR_NScxx . . $ INDI_DIR_NS# dir, TelescopeMotionCommandcxx . . $ INDI/Telescope#TelescopeMotionCommand# command) override;
86
87 bool MoveWEcxx . . $ StarbookDriver#MoveWE(a98f225cdad633ca).(INDI_DIR_WEcxx . . $ INDI_DIR_WE# dir, TelescopeMotionCommandcxx . . $ INDI/Telescope#TelescopeMotionCommand# command) override;
88
89 bool Abortcxx . . $ StarbookDriver#Abort(c9857a73d68e59ba).() override;
90
91 bool Parkcxx . . $ StarbookDriver#Park(c9857a73d68e59ba).() override;
92
93 bool UnParkcxx . . $ StarbookDriver#UnPark(c9857a73d68e59ba).() override;
94
95 bool SetSlewRatecxx . . $ StarbookDriver#SetSlewRate(83c267b20bac841a).(int index) override;
96
97 bool updateTimecxx . . $ StarbookDriver#updateTime(8f5ba5a5ba688cb1).(ln_datecxx . . $ ln_date# *utc, double utc_offset) override;
98
99 bool updateLocationcxx . . $ StarbookDriver#updateLocation(c3c51e0645da350e).(double latitude, double longitude, double elevation) override;
100
101 bool getFirmwareVersioncxx . . $ StarbookDriver#getFirmwareVersion(c9857a73d68e59ba).();
102
103 bool performStartcxx . . $ StarbookDriver#performStart(c9857a73d68e59ba).();
104
105 void setTrackStatecxx . . $ StarbookDriver#setTrackState(fe5661e15ad08e81).(const starbookcxx . . $ starbook/::StatusResponsecxx . . $ starbook/StatusResponse# &res);
106
107 void setStarbookStatecxx . . $ StarbookDriver#setStarbookState(dc2d62ccd73066f3).(const starbookcxx . . $ starbook/::StarbookStatecxx . . $ starbook/StarbookState# &state);
108 };