nidas v1.2.3
ConnectionRequester.h
Go to the documentation of this file.
1// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
2// vim: set shiftwidth=4 softtabstop=4 expandtab:
3/*
4 ********************************************************************
5 ** NIDAS: NCAR In-situ Data Acquistion Software
6 **
7 ** 2005, Copyright University Corporation for Atmospheric Research
8 **
9 ** This program is free software; you can redistribute it and/or modify
10 ** it under the terms of the GNU General Public License as published by
11 ** the Free Software Foundation; either version 2 of the License, or
12 ** (at your option) any later version.
13 **
14 ** This program is distributed in the hope that it will be useful,
15 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ** GNU General Public License for more details.
18 **
19 ** The LICENSE.txt file accompanying this software contains
20 ** a copy of the GNU General Public License. If it is not found,
21 ** write to the Free Software Foundation, Inc.,
22 ** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 **
24 ********************************************************************
25*/
26
27
28#ifndef NIDAS_CORE_CONNECTIONREQUESTER_H
29#define NIDAS_CORE_CONNECTIONREQUESTER_H
30
33
34namespace nidas { namespace core {
35
36class SampleInput;
37class SampleOutput;
38
43{
44public:
46
51 virtual void connect(SampleOutput* output) throw() = 0;
52
57 virtual void disconnect(SampleOutput* output) throw() = 0;
58};
59
60}} // namespace nidas namespace core
61
62#endif
Interface for an object that requests connections SampleOutputs.
Definition ConnectionRequester.h:43
virtual ~SampleConnectionRequester()
Definition ConnectionRequester.h:45
virtual void disconnect(SampleOutput *output)=0
How SampleOutputs notify their SampleConnectionRequester that they wish to be closed,...
virtual void connect(SampleOutput *output)=0
How SampleOutputs notify their SampleConnectionRequester that they are connected.
Interface of an output stream of samples.
Definition SampleOutput.h:49
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31