nidas  v1.2-1520
IEEE_Float.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  ** 2014, 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 NIDIS_DYNLD_IEEE_FLOAT_H
28 #define NIDIS_DYNLD_IEEE_FLOAT_H
29 
32 
33 namespace nidas { namespace dynld {
34 
35 using namespace nidas::core;
36 
42 class IEEE_Float: public SerialSensor
43 {
44 public:
45 
46  IEEE_Float();
47 
52  void validate() throw(nidas::util::InvalidParameterException);
53 
54  void init() throw(nidas::util::InvalidParameterException);
55 
59  bool process(const Sample* samp,std::list<const Sample*>& results)
60  throw();
61 
62 private:
63 
65 
67 
69 
70  int _nvars;
71 
73  IEEE_Float(const IEEE_Float& );
74 
76  IEEE_Float& operator = (const IEEE_Float& );
77 
78 };
79 
80 }} // namespace nidas namespace dynld
81 
82 #endif
endianness
Definition: EndianConverter.h:309
Support for a sensor that is sending packets on a TCP socket, a UDP socket, a Bluetooth RF Comm socke...
Definition: SerialSensor.h:64
nidas::util::EndianConverter::endianness _endian
Definition: IEEE_Float.h:64
A class for unpacking binary IEEE float values from a record into samples.
Definition: IEEE_Float.h:42
const nidas::util::EndianConverter * _converter
Definition: IEEE_Float.h:66
int _nvars
Definition: IEEE_Float.h:70
Virtual base class declaring methods for converting numeric values between little-endian and big-endi...
Definition: EndianConverter.h:304
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
SampleTag * _sampleTag
Definition: IEEE_Float.h:68
Definition: InvalidParameterException.h:35