Instrument Neutral Distributed Interface INDI
2.0.2
examples
tutorial_six
tutorial_client.h
Go to the documentation of this file.
1
/*
2
Tutorial Client
3
Copyright (C) 2010 Jasem Mutlaq (mutlaqja@ikarustech.com)
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
19
*/
20
21
#pragma once
22
37
#include "
baseclient.h
"
38
#include <
basedevice.h
>
39
40
class
MyClient
:
public
INDI::BaseClient
41
{
42
public
:
43
MyClient
();
44
~MyClient
() =
default
;
45
46
public
:
47
void
setTemperature
(
double
value);
48
void
takeExposure
(
double
seconds);
49
50
protected
:
51
void
newMessage
(
INDI::BaseDevice
baseDevice,
int
messageID)
override
;
52
53
private
:
54
INDI::BaseDevice
mSimpleCCD;
55
};
baseclient.h
basedevice.h
INDI::BaseClient
Class to provide basic client functionality.
Definition:
baseclient.h:52
INDI::BaseDevice
Class to provide basic INDI device functionality.
Definition:
basedevice.h:52
MyClient
Definition:
tutorial_client.h:41
MyClient::setTemperature
void setTemperature(double value)
Definition:
tutorial_client.cpp:121
MyClient::~MyClient
~MyClient()=default
MyClient::newMessage
void newMessage(INDI::BaseDevice baseDevice, int messageID) override
Emmited when a new message arrives from INDI server.
Definition:
tutorial_client.cpp:158
MyClient::MyClient
MyClient()
Definition:
tutorial_client.cpp:68
MyClient::takeExposure
void takeExposure(double seconds)
Definition:
tutorial_client.cpp:139
Generated on Sat May 13 2023 14:24:24 for Instrument Neutral Distributed Interface INDI by
1.9.1