From e2982b5f760a862e091992dc0424b2f78c6b724b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Nov 2020 16:45:38 +0100 Subject: Rename ModuleType to SignalDirection --- src/Configuration.hpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/Configuration.hpp') diff --git a/src/Configuration.hpp b/src/Configuration.hpp index 6d6b54a..71c6d84 100644 --- a/src/Configuration.hpp +++ b/src/Configuration.hpp @@ -23,11 +23,11 @@ #include #include -enum class ModuleType +enum class SignalDirection { input, output, - input_output, + duplex, }; enum class PortType @@ -62,11 +62,13 @@ public: void load(); void save(); - bool - get_module_location(const std::string& name, ModuleType type, Coord& loc); + bool get_module_location(const std::string& name, + SignalDirection type, + Coord& loc); - void - set_module_location(const std::string& name, ModuleType type, Coord loc); + void set_module_location(const std::string& name, + SignalDirection type, + Coord loc); void set_module_split(const std::string& name, bool split); bool get_module_split(const std::string& name, bool default_val) const; -- cgit v1.2.1