added strategys

This commit is contained in:
Johannes Wendel
2018-11-09 01:17:27 +01:00
parent 3ea37e4e53
commit 951b6bda2c
7 changed files with 220 additions and 0 deletions

View 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
}
}
}
}

View 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_ */

View 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_ */

View 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
}
}
}
}

View 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_ */

View 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
}
}
}
}

View 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_ */