This commit is contained in:
Jonas Zeunert
2018-11-20 23:05:03 +01:00

View File

@@ -40,28 +40,6 @@ class DisplayGPIOInterface {
} }
namespace flippR_driver::input {
class Event {
+Event(char address, int priority, std::string name)
+operator<(const Event& left, const Event& right) : bool
+operator==(const Event& left, const Event& right) : bool
+address : char
+priority : int
+name : std::string
}
}
namespace flippR_driver::input {
class EventHandler {
+EventHandler(std::shared_ptr<IInputDriver> input_driver)
+~EventHandler()
-input_driver : std::shared_ptr<IInputDriver>
+handle(Event& event) : void
}
}
namespace flippR_driver::utility { namespace flippR_driver::utility {
class GPIOInterface { class GPIOInterface {
+GPIOInterface() +GPIOInterface()
@@ -88,8 +66,8 @@ namespace flippR_driver::output {
abstract class IDisplay { abstract class IDisplay {
+IDisplay() +IDisplay()
+~IDisplay() +~IDisplay()
+{abstract} write_content(std::array<char, DigitCount> content) : void +{abstract} getID() : int
+{abstract} write_score(int score) : void -fit_string(std::string& score_string) : std::string
} }
} }
@@ -98,8 +76,8 @@ namespace flippR_driver::output {
abstract class IDisplay { abstract class IDisplay {
+IDisplay() +IDisplay()
+~IDisplay() +~IDisplay()
+{abstract} getID() : int +{abstract} write_content(std::array<char, DigitCount> content) : void
-fit_string(std::string& score_string) : std::string +{abstract} write_score(int score) : void
} }
} }
@@ -112,28 +90,6 @@ namespace flippR_driver::output {
} }
class IEightDigitDisplay {
+write_content(std::array<char, 8> content) : void
+write_score(int score) : void
}
abstract class IEventHandler {
+~IEventHandler()
+{abstract} handle(flippR_driver::input::Event& event) : void
}
namespace flippR_driver::input {
abstract class IInputDriver {
+~IInputDriver()
+{abstract} get_event(std::string name) : std::shared_ptr<Event>
+{abstract} register_event_handler(IEventHandler* handler) : void
+{abstract} unregister_event_handler(IEventHandler* handler) : void
}
}
namespace flippR_driver::utility { namespace flippR_driver::utility {
abstract class IInputGPIOInterface { abstract class IInputGPIOInterface {
+~IInputGPIOInterface() +~IInputGPIOInterface()
@@ -175,12 +131,6 @@ namespace flippR_driver::output {
} }
class ISevenDigitDisplay {
+write_content(std::array<char, 7> content) : void
+write_score(int score) : void
}
namespace flippR_driver::output { namespace flippR_driver::output {
class ISolenoid { class ISolenoid {
} }
@@ -320,9 +270,6 @@ namespace flippR_driver::output {
} }
.IEventHandler <|-- flippR_driver::input.EventHandler
namespace flippR_driver::utility { namespace flippR_driver::utility {
IInputGPIOInterface <|-- InputGPIOInterface IInputGPIOInterface <|-- InputGPIOInterface
} }
@@ -381,11 +328,6 @@ namespace flippR_driver::output {
flippR_driver::output.DisplayController o-- flippR_driver::utility.IOutputGPIOInterface flippR_driver::output.DisplayController o-- flippR_driver::utility.IOutputGPIOInterface
namespace flippR_driver::input {
EventHandler o-- IInputDriver
}
namespace flippR_driver::output { namespace flippR_driver::output {
OutputDriver "2" o-- IDisplay OutputDriver "2" o-- IDisplay
} }