changed everything to impl
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
#ifndef _SRC_OUTPUT_IOUTPUTDRIVER_H_
|
||||
#define _SRC_OUTPUT_IOUTPUTDRIVER_H_
|
||||
|
||||
#include "output/items/ILamp.h"
|
||||
#include "output/items/ISolenoid.h"
|
||||
#include "output/items/IDisplay.h"
|
||||
#include "output/items/ISound.h"
|
||||
#include "output/items/impl/Lamp.h"
|
||||
#include "output/items/Solenoid.h"
|
||||
#include "output/items/Display.h"
|
||||
#include "output/items/Sound.h"
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
@@ -27,15 +27,15 @@ class OutputDriver
|
||||
public:
|
||||
virtual ~OutputDriver() = default;
|
||||
|
||||
virtual std::vector<std::shared_ptr<items::ILamp>> get_lamps() = 0;
|
||||
virtual std::vector<std::shared_ptr<items::ISolenoid>> get_solenoids() = 0;
|
||||
virtual std::vector<std::shared_ptr<items::ISound>> get_sounds() = 0;
|
||||
virtual std::vector<std::shared_ptr<items::IDisplay>> get_displays() = 0;
|
||||
virtual std::vector<std::shared_ptr<items::Lamp>> get_lamps() = 0;
|
||||
virtual std::vector<std::shared_ptr<items::Solenoid>> get_solenoids() = 0;
|
||||
virtual std::vector<std::shared_ptr<items::Sound>> get_sounds() = 0;
|
||||
virtual std::vector<std::shared_ptr<items::Display>> get_displays() = 0;
|
||||
|
||||
virtual boost::optional<std::shared_ptr<items::ILamp>> get_lamp(std::string name) = 0;
|
||||
virtual boost::optional<std::shared_ptr<items::ISolenoid>> get_solenoid(std::string name) = 0;
|
||||
virtual boost::optional<std::shared_ptr<items::ISound>> get_sound(std::string name) = 0;
|
||||
virtual boost::optional<std::shared_ptr<items::IDisplay>> get_display(char number) = 0;
|
||||
virtual boost::optional<std::shared_ptr<items::Lamp>> get_lamp(std::string name) = 0;
|
||||
virtual boost::optional<std::shared_ptr<items::Solenoid>> get_solenoid(std::string name) = 0;
|
||||
virtual boost::optional<std::shared_ptr<items::Sound>> get_sound(std::string name) = 0;
|
||||
virtual boost::optional<std::shared_ptr<items::Display>> get_display(char number) = 0;
|
||||
};
|
||||
|
||||
} /* namespace output */
|
||||
|
||||
Reference in New Issue
Block a user