compiling
This commit is contained in:
@@ -58,25 +58,26 @@ std::vector<std::shared_ptr<ISolenoid>> OutputDriver::get_solenoids()
|
||||
return solenoids;
|
||||
}
|
||||
|
||||
std::shared_ptr<ISound> OutputDriver::get_sound(std::string name)
|
||||
boost::optional<std::shared_ptr<items::ILamp>> OutputDriver::get_lamp(std::string name)
|
||||
{
|
||||
return this->sounds.find(name)->second;
|
||||
return this->lamps.find(name)->second;
|
||||
}
|
||||
|
||||
std::shared_ptr<IDisplay> OutputDriver::get_display(char number)
|
||||
{
|
||||
return this->displays.find(number)->second;
|
||||
}
|
||||
|
||||
std::shared_ptr<ILamp> OutputDriver::get_lamp(std::string name)
|
||||
{
|
||||
return this->lamps.find(name)->second;
|
||||
}
|
||||
|
||||
std::shared_ptr<ISolenoid> OutputDriver::get_solenoid(std::string name)
|
||||
boost::optional<std::shared_ptr<items::ISolenoid>> OutputDriver::get_solenoid(std::string name)
|
||||
{
|
||||
return this->solenoids.find(name)->second;
|
||||
}
|
||||
|
||||
boost::optional<std::shared_ptr<items::ISound>> OutputDriver::get_sound(std::string name)
|
||||
{
|
||||
return this->sounds.find(name)->second;
|
||||
}
|
||||
|
||||
boost::optional<std::shared_ptr<items::IDisplay>> OutputDriver::get_display(char number)
|
||||
{
|
||||
return this->displays.find(number)->second;
|
||||
}
|
||||
|
||||
|
||||
} /* namespace output */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user