RCKit
Main Page
Classes
Files
Examples
File List
File Members
Inverter.h
1
// Inverter.h
2
//
3
// Setter Class that inverts its input value and sends it to the output
4
/// \author Mike McCauley (mikem@airspayce.com)
5
///
6
// Copyright (C) 2010 Mike McCauley
7
// $Id: Inverter.h,v 1.2 2010/06/28 00:56:10 mikem Exp $
8
9
#ifndef Inverter_h
10
#define Inverter_h
11
12
#include "Setter.h"
13
14
/////////////////////////////////////////////////////////////////////
15
/// \class Inverter Inverter.h <Inverter.h>
16
/// \brief Setter object that inverts its value.
17
///
18
/// Inverter inverts its input value and passes it the resulting value to the
19
/// next Setter (the target) in the chain.
20
class
Inverter
:
public
Setter
21
{
22
public
:
23
/// Input the value to be inverted
24
/// \param[in] value The input value
25
virtual
void
input
(
int
value);
26
27
protected
:
28
29
private
:
30
};
31
32
#endif
Generated by
1.8.1