-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFakeOutput.h
41 lines (31 loc) · 927 Bytes
/
FakeOutput.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Copyright (C) 2015 Willi Menapace <willi.menapace@gmail.com>, Simone Lorengo - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Willi Menapace <willi.menapace@gmail.com>
*/
#ifndef FAKE_OUTPUT_INCLUDED
#define FAKE_OUTPUT_INCLUDED
#include "GlobalDefines.h"
#include "Output.h"
/**
* Output simulato con tipo impostabile
*/
class FakeOutput : public Output {
private:
OutputType type;
long lastOutputValue;
public:
OutputType getType();
void performOutput(long value);
/**
* @return l'ultimo valore inviato in output sull'output corrente
*/
long getLastOutputValue();
/**
* Costruisce un output con il tipo specificato
*
* @param _type il tipo dell'output
*/
FakeOutput(OutputType _type);
};
#endif // FAKE_OUTPUT_INCLUDED