alter stand hoffentlich

This commit is contained in:
Johannes Wendel
2018-11-09 15:08:16 +01:00
parent 4ed5b9e4cd
commit 062a729c92
7 changed files with 8 additions and 115 deletions

View File

@@ -15,13 +15,13 @@ namespace flippR_driver
namespace output
{
OutputDriver::OutputDriver(std::map<std::string, std::shared_ptr<IOutputItem>> cabinet_items, std::map<char, std::shared_ptr<IDisplay>> displays, std::map<std::string, std::shared_ptr<ISound>> sounds)
OutputDriver::OutputDriver(std::map<std::string, std::shared_ptr<ICabinetItem>> cabinet_items, std::map<char, std::shared_ptr<IDisplay>> displays, std::map<std::string, std::shared_ptr<ISound>> sounds)
: cabinet_items(cabinet_items), displays(displays), sounds(sounds)
{}
std::vector<std::shared_ptr<IOutputItem>> OutputDriver::get_cabinet_items()
std::vector<std::shared_ptr<ICabinetItem>> OutputDriver::get_cabinet_items()
{
std::vector<std::shared_ptr<IOutputItem>> cabinet_items;
std::vector<std::shared_ptr<ICabinetItem>> cabinet_items;
boost::copy(this->cabinet_items | boost::adaptors::map_values, std::back_inserter(cabinet_items));
@@ -46,7 +46,7 @@ std::vector<std::shared_ptr<IDisplay>> OutputDriver::get_displays()
return displays;
}
std::shared_ptr<IOutputItem> OutputDriver::get_cabinet_item(std::string name)
std::shared_ptr<ICabinetItem> OutputDriver::get_cabinet_item(std::string name)
{
return this->cabinet_items.find(name)->second;
}