refactored namespaces
This commit is contained in:
28
FlippR-Driver/include/output/items/IEightDigitDisplay.h
Normal file
28
FlippR-Driver/include/output/items/IEightDigitDisplay.h
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Created by rhetenor on 20.11.18.
|
||||
//
|
||||
|
||||
#ifndef FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
||||
#define FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
||||
|
||||
#include "IOutputDisplay.h"
|
||||
|
||||
#include <array>
|
||||
|
||||
namespace flippr_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class IEightDigitDisplay : public IOutputDisplay
|
||||
{
|
||||
public:
|
||||
virtual void write_content(std::array<char, 8> content) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif //FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
||||
33
FlippR-Driver/include/output/items/ILamp.h
Normal file
33
FlippR-Driver/include/output/items/ILamp.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* ILamp.h
|
||||
*
|
||||
* Created on: Aug 7, 2018
|
||||
* Author: rhetenor
|
||||
*/
|
||||
|
||||
#ifndef _SRC_OUTPUT_ILAMP_H_
|
||||
#define _SRC_OUTPUT_ILAMP_H_
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class ILamp
|
||||
{
|
||||
public:
|
||||
~ILamp()
|
||||
{};
|
||||
|
||||
void activate();
|
||||
void deactivate();
|
||||
bool is_activated();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
33
FlippR-Driver/include/output/items/IOutputDisplay.h
Normal file
33
FlippR-Driver/include/output/items/IOutputDisplay.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* IOutputDisplay.h
|
||||
*
|
||||
* Created on: Nov 20, 2018
|
||||
* Author: johannes
|
||||
*/
|
||||
|
||||
#ifndef SRC_OUTPUT_IOUTPUTDISPLAY_H_
|
||||
#define SRC_OUTPUT_IOUTPUTDISPLAY_H_
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class IDisplay
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ~IDisplay()
|
||||
{};
|
||||
|
||||
virtual void write_score(int score) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif /* SRC_OUTPUT_IOUTPUTDISPLAY_H_ */
|
||||
28
FlippR-Driver/include/output/items/ISevenDigitDisplay.h
Normal file
28
FlippR-Driver/include/output/items/ISevenDigitDisplay.h
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Created by rhetenor on 20.11.18.
|
||||
//
|
||||
|
||||
#ifndef FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
||||
#define FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
||||
|
||||
#include "IOutputDisplay.h"
|
||||
|
||||
#include <array>
|
||||
|
||||
namespace flippr_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class ISevenDigitDisplay : public IOutputDisplay
|
||||
{
|
||||
public:
|
||||
virtual void write_content(std::array<char, 7> content) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif //FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
||||
30
FlippR-Driver/include/output/items/ISolenoid.h
Normal file
30
FlippR-Driver/include/output/items/ISolenoid.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* ISolenoid.h
|
||||
*
|
||||
* Created on: Aug 7, 2018
|
||||
* Author: rhetenor
|
||||
*/
|
||||
|
||||
#ifndef _SRC_OUTPUT_ISOLENOID_H_
|
||||
#define _SRC_OUTPUT_ISOLENOID_H_
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class ISolenoid
|
||||
{
|
||||
public:
|
||||
~ISolenoid()
|
||||
{};
|
||||
void trigger();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
30
FlippR-Driver/include/output/items/ISound.h
Normal file
30
FlippR-Driver/include/output/items/ISound.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* ISound.h
|
||||
*
|
||||
* Created on: Aug 2, 2018
|
||||
* Author: rhetenor
|
||||
*/
|
||||
|
||||
#ifndef _SRC_OUTPUT_ISOUND_H_
|
||||
#define _SRC_OUTPUT_ISOUND_H_
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class ISound
|
||||
{
|
||||
public:
|
||||
ISound();
|
||||
virtual ~ISound();
|
||||
|
||||
virtual void play() = 0;
|
||||
};
|
||||
|
||||
}
|
||||
} /* namespace output */
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user