nidas v1.2.3
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
33namespace nidas { namespace dynld {
34
35using namespace nidas::core;
36
43{
44public:
45
46 IEEE_Float();
47
54 void validate();
55
59 void init();
60
64 bool process(const Sample* samp,std::list<const Sample*>& results)
65 throw();
66
67private:
68
70
72
74
75 int _nvars;
76
79
82
83};
84
85}} // namespace nidas namespace dynld
86
87#endif
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
Support for a sensor that is sending packets on a TCP socket, a UDP socket, a Bluetooth RF Comm socke...
Definition SerialSensor.h:65
A class for unpacking binary IEEE float values from a record into samples.
Definition IEEE_Float.h:43
const nidas::util::EndianConverter * _converter
Definition IEEE_Float.h:71
IEEE_Float()
Definition IEEE_Float.cc:43
nidas::util::EndianConverter::endianness _endian
Definition IEEE_Float.h:69
void validate()
Check the endianness, count the number of variables and get the sample tag for this sensor.
Definition IEEE_Float.cc:55
bool process(const Sample *samp, std::list< const Sample * > &results)
Convert a raw sample containing IEEE floats into an output sample.
Definition IEEE_Float.cc:98
SampleTag * _sampleTag
Definition IEEE_Float.h:73
void init()
Definition IEEE_Float.cc:49
IEEE_Float & operator=(const IEEE_Float &)
no assignment
int _nvars
Definition IEEE_Float.h:75
IEEE_Float(const IEEE_Float &)
no copying
Virtual base class declaring methods for converting numeric values between little-endian and big-endi...
Definition EndianConverter.h:304
endianness
Definition EndianConverter.h:309
The essential core classes of nidas.
Definition A2DConverter.h:31
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31