~arcachofo/simulide/1.1.0

« back to all changes in this revision

Viewing changes to src/simulator/elements/logic/e-gate_xor.h

  • Committer: arcachofo
  • Date: 2021-01-01 14:23:42 UTC
  • Revision ID: arcachofo@simulide.com-20210101142342-ozfljnll44g5lbl3
Initial Commit 0.5.15-RC3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2003-2006 by David Saxton                               *
 
3
 *   david@bluehaze.org                                                    *
 
4
 *                                                                         *
 
5
 *   Copyright (C) 2010 by santiago González                               *
 
6
 *   santigoro@gmail.com                                                   *
 
7
 *                                                                         *
 
8
 *   This program is free software; you can redistribute it and/or modify  *
 
9
 *   it under the terms of the GNU General Public License as published by  *
 
10
 *   the Free Software Foundation; either version 3 of the License, or     *
 
11
 *   (at your option) any later version.                                   *
 
12
 *                                                                         *
 
13
 *   This program is distributed in the hope that it will be useful,       *
 
14
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
15
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
16
 *   GNU General Public License for more details.                          *
 
17
 *                                                                         *
 
18
 *   You should have received a copy of the GNU General Public License     *
 
19
 *   along with this program; if not, write to the                         *
 
20
 *   Free Software Foundation, Inc.,                                       *
 
21
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 
22
 ***************************************************************************/
 
23
 
 
24
#ifndef EXORGATE_H
 
25
#define EXORGATE_H
 
26
 
 
27
#include "e-gate.h"
 
28
 
 
29
class MAINMODULE_EXPORT eXorGate : public eGate
 
30
{
 
31
    public:
 
32
 
 
33
        eXorGate( QString id, int inputs );
 
34
        ~eXorGate();
 
35
 
 
36
    protected:
 
37
        bool calcOutput( int inputs );
 
38
};
 
39
 
 
40
 
 
41
#endif