nidas v1.2.3
CVIOutput.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 ** 2007, 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#ifndef NIDAS_DYNLD_RAF_CVIOUTPUT_H
28#define NIDAS_DYNLD_RAF_CVIOUTPUT_H
29
32
33namespace nidas {
34
35namespace core {
36class Variable;
37}
38
39namespace dynld { namespace raf {
40
41using namespace nidas::core;
42
44{
45public:
46
47 CVIOutput();
48
50
51 ~CVIOutput();
52
56 void flush() throw() {}
57
58 CVIOutput* clone(IOChannel* iochannel=0);
59
64
69
73 bool receive(const Sample* samp);
74
79
80 void setIOChannel(IOChannel* val);
81
82protected:
87
88private:
89
90 std::ostringstream _ostr;
91
92 std::vector<const Variable*> _variables;
93
95
99 float _tas;
100
101};
102
103}}} // namespace nidas namespace dynld namespace raf
104
105#endif
Interface of a DerivedDataClient of the DerivedDataReader.
Definition DerivedDataClient.h:37
This class will read, parse and make available the parameters in the onboard real-time broadcast of d...
Definition DerivedDataReader.h:45
A channel for Input or Output of data.
Definition IOChannel.h:65
Interface for an object that requests connections SampleOutputs.
Definition ConnectionRequester.h:43
Implementation of portions of SampleOutput.
Definition SampleOutput.h:160
Class describing a group of variables that are sampled and handled together.
Definition SampleTag.h:88
Interface to a data sample.
Definition Sample.h:190
Definition CVIOutput.h:44
void addRequestedSampleTag(SampleTag *)
Definition CVIOutput.cc:93
CVIOutput()
Definition CVIOutput.cc:46
void requestConnection(SampleConnectionRequester *requester)
Definition CVIOutput.cc:104
void derivedDataNotify(const DerivedDataReader *s)
Definition CVIOutput.cc:112
dsm_time_t _tt0
Definition CVIOutput.h:94
void flush()
Implementation of SampleClient::flush().
Definition CVIOutput.h:56
float _tas
True airspeed from DerivedDataReader.
Definition CVIOutput.h:99
CVIOutput * clone(IOChannel *iochannel=0)
Definition CVIOutput.cc:79
std::ostringstream _ostr
Definition CVIOutput.h:90
bool receive(const Sample *samp)
Definition CVIOutput.cc:118
void setIOChannel(IOChannel *val)
Set the IOChannel for this SampleOutput.
Definition CVIOutput.cc:85
~CVIOutput()
Definition CVIOutput.cc:73
std::vector< const Variable * > _variables
Definition CVIOutput.h:92
The essential core classes of nidas.
Definition A2DConverter.h:31
long long dsm_time_t
Posix time in microseconds, the number of non-leap microseconds since 1970 Jan 1 00:00 UTC.
Definition Sample.h:62
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31