Adds output factory-prototypes
This commit is contained in:
35
FlippR-Driver/src/output/factories/Factory.h
Normal file
35
FlippR-Driver/src/output/factories/Factory.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Factory.h
|
||||
*
|
||||
* Created on: December 28, 2019
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
||||
*/
|
||||
|
||||
#ifndef FLIPPR_DRIVER_FACTORY_H
|
||||
#define FLIPPR_DRIVER_FACTORY_H
|
||||
|
||||
#include "utility/config.h"
|
||||
#include "json/json.hpp"
|
||||
#include "output/items/Item.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
|
||||
class Factory
|
||||
{
|
||||
public:
|
||||
Factory(nlohmann::json &object);
|
||||
|
||||
virtual std::map<std::string, std::shared_ptr<items::Item>> getItemMap() = 0;
|
||||
|
||||
protected:
|
||||
nlohmann::json object;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif //FLIPPR_DRIVER_FACTORY_H
|
||||
Reference in New Issue
Block a user