srecord: input/filter/bitrev.h Source File

srecord 1.65.0

Loading...
Searching...
No Matches
bitrev.h
Go to the documentation of this file.
1//
2// srecord - Manipulate EPROM load files
3// Copyright (C) 2009-2011 Peter Miller
4//
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation; either version 3 of the License, or (at
8// your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13// General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with this program. If not, see <http://www.gnu.org/licenses/>.
17//
18
19#ifndef SRECORD_INPUT_FILTER_BITREV_H
20#define SRECORD_INPUT_FILTER_BITREV_H
21
22#include <srecord/input/filter.h>
23
24namespace srecord {
25
26/**
27 * The srecord::input_filter_bitrev clas sis used to represent the input state
28 * of a filter which reverses the order of bits in each data byte.
29 */
30 class input_filter_bitrev:
31 public input_filter
32{
33public:
34 /**
35 * The destructor.
36 */
37 virtual ~input_filter_bitrev();
38
39private:
40 /**
41 * The constructor.
42 *
43 * @param deeper
44 * The deeper input to be used as a data source.
45 */
46 input_filter_bitrev(const input::pointer &deeper);
47
48public:
49 /**
50 * The create class method is used to create new dynamically
51 * allocated instances of this class.
52 *
53 * @param deeper
54 * The incoming data source to be filtered
55 */
56 static pointer create(const input::pointer &deeper);
57
58protected:
59 // See base class for documentation.
60 bool read(record &record);
61
62private:
63 /**
64 * The default constructor. Do not use.
65 */
66 input_filter_bitrev();
67
68 /**
69 * The copy constructor. Do not use.
70 */
71 input_filter_bitrev(const input_filter_bitrev &);
72
73 /**
74 * The assignment operator. Do not use.
75 */
76 input_filter_bitrev &operator=(const input_filter_bitrev &);
77};
78
79};
80
81// vim: set ts=8 sw=4 et :
82#endif // SRECORD_INPUT_FILTER_BITREV_H
srecord::input_filter_bitrev::create
static pointer create(const input::pointer &deeper)
The create class method is used to create new dynamically allocated instances of this class.
srecord::input_filter_bitrev::read
bool read(record &record)
The read method is used to read one record from the input.
srecord::input_filter_bitrev::~input_filter_bitrev
virtual ~input_filter_bitrev()
The destructor.
srecord::input_filter::input_filter
input_filter(input::pointer deeper)
The constructor.
srecord::input::pointer
std::shared_ptr< input > pointer
Definition input.h:41
srecord::record
The srecord::record class is used to represent a data record read from a file.
Definition record.h:35
filter.h
srecord
Definition adler16.h:25