merging
This commit is contained in:
@@ -15,13 +15,13 @@ namespace FlippR_Driver
|
||||
namespace output
|
||||
{
|
||||
|
||||
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)
|
||||
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)
|
||||
: cabinet_items(cabinet_items), displays(displays), sounds(sounds)
|
||||
{}
|
||||
|
||||
std::vector<std::shared_ptr<ICabinetItem>> OutputDriver::get_cabinet_items()
|
||||
std::vector<std::shared_ptr<IOutputItem>> OutputDriver::get_cabinet_items()
|
||||
{
|
||||
std::vector<std::shared_ptr<ICabinetItem>> cabinet_items;
|
||||
std::vector<std::shared_ptr<IOutputItem>> 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<ICabinetItem> OutputDriver::get_cabinet_item(std::string name)
|
||||
std::shared_ptr<IOutputItem> OutputDriver::get_cabinet_item(std::string name)
|
||||
{
|
||||
return this->cabinet_items.find(name)->second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user