Integrates SoundFactory

This commit is contained in:
Johannes Wendel
2019-12-29 15:55:43 +01:00
parent bb1a74613a
commit 73ec82b42f
14 changed files with 41 additions and 50 deletions

View File

@@ -12,11 +12,12 @@ namespace flippR_driver
namespace output
{
Factory::Factory(nlohmann::json &object) :
object{object}
Factory::Factory(nlohmann::json &object, std::shared_ptr<PinController> pin_controller) :
pin_controller{pin_controller}
{
this->object = object;
this->initialize_port_extenders();
this->port_extenders = this->object.at("port_extenders");
this->port_extenders = object.at("port_extenders");
}
void Factory::initialize_port_extender(nlohmann::json &extender)