added strategys
This commit is contained in:
31
FlippR-Driver/src/output/ActivateStrategy.cpp
Normal file
31
FlippR-Driver/src/output/ActivateStrategy.cpp
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* ActivateStrategy.cpp
|
||||||
|
*
|
||||||
|
* Created on: Nov 8, 2018
|
||||||
|
* Author: johannes
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "ActivateStrategy.h"
|
||||||
|
|
||||||
|
namespace flippR_driver
|
||||||
|
{
|
||||||
|
namespace output
|
||||||
|
{
|
||||||
|
namespace strategy
|
||||||
|
{
|
||||||
|
ActivateStrategy::ActivateStrategy()
|
||||||
|
{
|
||||||
|
// TODO Auto-generated constructor stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ActivateStrategy::~ActivateStrategy()
|
||||||
|
{
|
||||||
|
// TODO Auto-generated destructor stub
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
33
FlippR-Driver/src/output/ActivateStrategy.h
Normal file
33
FlippR-Driver/src/output/ActivateStrategy.h
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* ActivateStrategy.h
|
||||||
|
*
|
||||||
|
* Created on: Nov 8, 2018
|
||||||
|
* Author: johannes
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SRC_OUTPUT_ACTIVATESTRATEGY_H_
|
||||||
|
#define SRC_OUTPUT_ACTIVATESTRATEGY_H_
|
||||||
|
|
||||||
|
#include "ActivationStrategy.h"
|
||||||
|
|
||||||
|
namespace flippR_driver
|
||||||
|
{
|
||||||
|
namespace output
|
||||||
|
{
|
||||||
|
namespace strategy
|
||||||
|
{
|
||||||
|
|
||||||
|
class ActivateStrategy : public ActivationStrategy
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ActivateStrategy();
|
||||||
|
virtual ~ActivateStrategy();
|
||||||
|
|
||||||
|
virtual void operator()();
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* SRC_OUTPUT_ACTIVATESTRATEGY_H_ */
|
||||||
29
FlippR-Driver/src/output/ActivationStrategy.h
Normal file
29
FlippR-Driver/src/output/ActivationStrategy.h
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* ActivationStrategy.h
|
||||||
|
*
|
||||||
|
* Created on: Nov 8, 2018
|
||||||
|
* Author: johannes
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SRC_OUTPUT_ACTIVATIONSTRATEGY_H_
|
||||||
|
#define SRC_OUTPUT_ACTIVATIONSTRATEGY_H_
|
||||||
|
|
||||||
|
namespace flippR_driver
|
||||||
|
{
|
||||||
|
namespace output
|
||||||
|
{
|
||||||
|
namespace strategy
|
||||||
|
{
|
||||||
|
class ActivationStrategy
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual ~ActivationStrategy(){}
|
||||||
|
|
||||||
|
virtual void operator()() = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* SRC_OUTPUT_ACTIVATIONSTRATEGY_H_ */
|
||||||
31
FlippR-Driver/src/output/DeactivateStrategy.cpp
Normal file
31
FlippR-Driver/src/output/DeactivateStrategy.cpp
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* DeactivateStrategy.cpp
|
||||||
|
*
|
||||||
|
* Created on: Nov 8, 2018
|
||||||
|
* Author: johannes
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "DeactivateStrategy.h"
|
||||||
|
|
||||||
|
namespace flippR_driver
|
||||||
|
{
|
||||||
|
namespace output
|
||||||
|
{
|
||||||
|
namespace strategy
|
||||||
|
{
|
||||||
|
DeactivateStrategy::DeactivateStrategy()
|
||||||
|
{
|
||||||
|
// TODO Auto-generated constructor stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
DeactivateStrategy::~DeactivateStrategy()
|
||||||
|
{
|
||||||
|
// TODO Auto-generated destructor stub
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
32
FlippR-Driver/src/output/DeactivateStrategy.h
Normal file
32
FlippR-Driver/src/output/DeactivateStrategy.h
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* DeactivateStrategy.h
|
||||||
|
*
|
||||||
|
* Created on: Nov 8, 2018
|
||||||
|
* Author: johannes
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SRC_OUTPUT_DEACTIVATESTRATEGY_H_
|
||||||
|
#define SRC_OUTPUT_DEACTIVATESTRATEGY_H_
|
||||||
|
|
||||||
|
#include "ActivationStrategy.h"
|
||||||
|
|
||||||
|
namespace flippR_driver
|
||||||
|
{
|
||||||
|
namespace output
|
||||||
|
{
|
||||||
|
namespace strategy
|
||||||
|
{
|
||||||
|
class DeactivateStrategy : public ActivationStrategy
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
DeactivateStrategy();
|
||||||
|
virtual ~DeactivateStrategy();
|
||||||
|
|
||||||
|
virtual void operator()();
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* SRC_OUTPUT_DEACTIVATESTRATEGY_H_ */
|
||||||
31
FlippR-Driver/src/output/TriggerStrategy.cpp
Normal file
31
FlippR-Driver/src/output/TriggerStrategy.cpp
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* TriggerStrategy.cpp
|
||||||
|
*
|
||||||
|
* Created on: Nov 8, 2018
|
||||||
|
* Author: johannes
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "TriggerStrategy.h"
|
||||||
|
|
||||||
|
namespace flippR_driver
|
||||||
|
{
|
||||||
|
namespace output
|
||||||
|
{
|
||||||
|
namespace strategy
|
||||||
|
{
|
||||||
|
|
||||||
|
TriggerStrategy::TriggerStrategy()
|
||||||
|
{
|
||||||
|
// TODO Auto-generated constructor stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
TriggerStrategy::~TriggerStrategy()
|
||||||
|
{
|
||||||
|
// TODO Auto-generated destructor stub
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
33
FlippR-Driver/src/output/TriggerStrategy.h
Normal file
33
FlippR-Driver/src/output/TriggerStrategy.h
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* TriggerStrategy.h
|
||||||
|
*
|
||||||
|
* Created on: Nov 8, 2018
|
||||||
|
* Author: johannes
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SRC_OUTPUT_TRIGGERSTRATEGY_H_
|
||||||
|
#define SRC_OUTPUT_TRIGGERSTRATEGY_H_
|
||||||
|
|
||||||
|
#include "ActivationStrategy.h"
|
||||||
|
|
||||||
|
namespace flippR_driver
|
||||||
|
{
|
||||||
|
namespace output
|
||||||
|
{
|
||||||
|
namespace strategy
|
||||||
|
{
|
||||||
|
|
||||||
|
class TriggerStrategy : public ActivationStrategy
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
TriggerStrategy();
|
||||||
|
virtual ~TriggerStrategy();
|
||||||
|
|
||||||
|
virtual void operator()();
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* SRC_OUTPUT_TRIGGERSTRATEGY_H_ */
|
||||||
Reference in New Issue
Block a user