srecord: input/filter/not.h Source File

srecord 1.65.0

Loading...
Searching...
No Matches
not.h
Go to the documentation of this file.
1//
2// srecord - manipulate eprom load files
3// Copyright (C) 2001, 2002, 2005-2008, 2010 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
8// (at 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
13// GNU Lesser 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
17// <http://www.gnu.org/licenses/>.
18//
19
20#ifndef SRECORD_INPUT_FILTER_NOT_H
21#define SRECORD_INPUT_FILTER_NOT_H
22
23#include <srecord/input/filter.h>
24
25namespace srecord
26{
27
28/**
29 * The srecord::input_filter_not class is used to represent an input stream
30 * which bit-wise NOTs the data.
31 */
32 class input_filter_not:
33 public input_filter
34{
35public:
36 /**
37 * The destructor.
38 */
39 virtual ~input_filter_not();
40
41private:
42 /**
43 * The constructor.
44 *
45 * @param deeper
46 * The input source to be filtered.
47 */
48 input_filter_not(const input::pointer &deeper);
49
50public:
51 /**
52 * The create class method is used to create new dynamically
53 * allocated instances of this class.
54 *
55 * @param deeper
56 * The incoming data source
57 */
58 static pointer create(const input::pointer &deeper);
59
60protected:
61 // See base class for documentation.
62 bool read(record &record);
63
64private:
65 /**
66 * The default constructor. Do not use.
67 */
68 input_filter_not();
69
70 /**
71 * The copy constructor. Do not use.
72 */
73 input_filter_not(const input_filter_not &);
74
75 /**
76 * The assignment operator. Do not use.
77 */
78 input_filter_not &operator=(const input_filter_not &);
79};
80
81};
82
83#endif // SRECORD_INPUT_FILTER_NOT_H
srecord::input_filter_not::~input_filter_not
virtual ~input_filter_not()
The destructor.
srecord::input_filter_not::read
bool read(record &record)
The read method is used to read one record from the input.
srecord::input_filter_not::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::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