Website Summary Files Commits Branches @commit @diff @stats
path: root / src / ConsoleInterface
diff options
context:
space:
mode:
2 files changed, 13 insertions, 3 deletions
-rw-r--r--src/ConsoleInterface/Toolbox.cpp8
-rw-r--r--src/ConsoleInterface/Toolbox.hpp8
diff --git a/src/ConsoleInterface/Toolbox.cpp b/src/ConsoleInterface/Toolbox.cpp
index 55ac708..fc871ae 100644
--- a/src/ConsoleInterface/Toolbox.cpp
+++ b/src/ConsoleInterface/Toolbox.cpp
@@ -74,11 +74,11 @@ void _printOrderedListBeginning() {
std::cout << "[" << orderedListIndex++ << "] ";
}
-void _printInputBoxLabel(const char* label) {
+void _printInputBoxSubLabel(const char* label) {
std::cout << " (+) " << label;
}
-void _printAltInputBoxLabel(const char* label) {
+void _printInputBoxLabel(const char* label) {
std::cout << "(+) " << label;
}
@@ -87,3 +87,7 @@ void inputLineBox(const char* label, char* output, unsigned maxWidth) {
std::cin.ignore();
std::cin.getline(output, maxWidth);
}
+
+void inputLineSubBox(const char* label, char* output, unsigned maxWidth) {
+
+}
diff --git a/src/ConsoleInterface/Toolbox.hpp b/src/ConsoleInterface/Toolbox.hpp
index daf8db4..2844682 100644
--- a/src/ConsoleInterface/Toolbox.hpp
+++ b/src/ConsoleInterface/Toolbox.hpp
@@ -20,7 +20,7 @@ void inputLineBox(const char* label, char* output, unsigned maxWidth);
void resetOrderedList(int starter = 1);
void _printInputBoxLabel(const char* label);
-void _printAltInputBoxLabel(const char* label);
+void _printInputBoxSubLabel(const char* label);
void _printOrderedListBeginning();
template <class T>
@@ -66,4 +66,10 @@ void inputBox(const char* label, T* output) {
std::cin >> *output;
}
+template <typename T>
+void inputSubBox(const char* label, T* output) {
+ _printInputSubBoxLabel(label);
+ std::cin >> *output;
+}
+
#endif