nidas  v1.2-1520
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 
33 namespace nidas {
34 
35 namespace core {
36 class Variable;
37 }
38 
39 namespace dynld { namespace raf {
40 
41 using namespace nidas::core;
42 
44 {
45 public:
46 
47  CVIOutput();
48 
49  CVIOutput(IOChannel* iochannel,SampleConnectionRequester* rqstr=0);
50 
51  ~CVIOutput();
52 
56  void flush() throw() {}
57 
58  CVIOutput* clone(IOChannel* iochannel=0);
59 
60  void addRequestedSampleTag(SampleTag*)
61  throw(nidas::util::InvalidParameterException);
62 
63  void requestConnection(SampleConnectionRequester* requester) throw();
64 
65  bool receive(const Sample* samp) throw();
66 
67  void derivedDataNotify(const DerivedDataReader * s) throw();
68 
69  void setIOChannel(IOChannel* val);
70 
71 protected:
76 
77 private:
78 
79  std::ostringstream _ostr;
80 
81  std::vector<const Variable*> _variables;
82 
83  dsm_time_t _tt0;
84 
88  float _tas;
89 
90 };
91 
92 }}} // namespace nidas namespace dynld namespace raf
93 
94 #endif
Interface for an object that requests connections SampleOutputs.
Definition: ConnectionRequester.h:42
void flush()
Implementation of SampleClient::flush().
Definition: CVIOutput.h:56
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:61
Class describing a sampled variable.
Definition: Variable.h:46
Implementation of portions of SampleOutput.
Definition: SampleOutput.h:147
A channel for Input or Output of data.
Definition: IOChannel.h:64
Interface to a data sample.
Definition: Sample.h:189
Class describing a group of variables that are sampled and handled together.
Definition: SampleTag.h:87
This class will read, parse and make available the parameters in the onboard real-time broadcast of d...
Definition: DerivedDataReader.h:44
Definition: CVIOutput.h:43
Interface of a DerivedDataClient of the DerivedDataReader.
Definition: DerivedDataClient.h:37
Definition: InvalidParameterException.h:35