nidas v1.2.3
DSC_Event.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 ** 2009, 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#ifndef NIDAS_DYNLD_DSC_EVENT_H
27#define NIDAS_DYNLD_DSC_EVENT_H
28
31
32namespace nidas { namespace dynld {
33
34using namespace nidas::core;
35
46class DSC_Event : public DSMSensor {
47
48public:
49
50 DSC_Event();
51
52 ~DSC_Event();
53
58
63
70 void open(int flags);
71
75 void init();
76
77 /*
78 * Close the device connected to the sensor.
79 *
80 * @throws nidas::util::IOException
81 **/
82 void close();
83
87 void printStatus(std::ostream& ostr);
88
93 bool process(const Sample*,std::list<const Sample*>& result)
94 throw();
95
96private:
97
99
101
104
107
108};
109
110}} // namespace nidas namespace dynld
111
112#endif
DSMSensor provides the basic support for reading, processing and distributing samples from a sensor a...
Definition DSMSensor.h:88
An interface to an IO device.
Definition IODevice.h:42
A scanner of sample data.
Definition SampleScanner.h:74
Interface to a data sample.
Definition Sample.h:190
Sensor support for a simple event detector.
Definition DSC_Event.h:46
DSC_Event(const DSC_Event &)
No copying.
void printStatus(std::ostream &ostr)
Definition DSC_Event.cc:100
void close()
close my associated device.
Definition DSC_Event.cc:77
dsm_sample_id_t _sampleId
Definition DSC_Event.h:98
void open(int flags)
Open the device connected to the sensor.
Definition DSC_Event.cc:65
bool process(const Sample *, std::list< const Sample * > &result)
Process a raw sample, which in this case means convert the input counts to a float.
Definition DSC_Event.cc:124
void init()
Definition DSC_Event.cc:83
IODevice * buildIODevice()
Definition DSC_Event.cc:55
~DSC_Event()
Definition DSC_Event.cc:51
SampleScanner * buildSampleScanner()
Definition DSC_Event.cc:60
DSC_Event()
Definition DSC_Event.cc:45
const nidas::util::EndianConverter * _cvtr
Definition DSC_Event.h:100
DSC_Event & operator=(const DSC_Event &)
No assignment.
Virtual base class declaring methods for converting numeric values between little-endian and big-endi...
Definition EndianConverter.h:304
The essential core classes of nidas.
Definition A2DConverter.h:31
unsigned int dsm_sample_id_t
Definition Sample.h:64
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31