From 64f81cf3aa178da82a243cb84452f78f902942ac Mon Sep 17 00:00:00 2001 From: Sam Dai <89489298+samdai01@users.noreply.github.com> Date: Sat, 3 Feb 2024 07:45:24 -0800 Subject: [PATCH] add install directory to gitignore (#24) --- .gitignore | 1 + .../diagnostics/lib/diagnostics/diagnostics | Bin 25040 -> 19544 bytes src/main/diagnostics.cpp | 26 ++---------------- src/main/diagnostics.h | 8 +++--- src/ui/common/commonUI.cpp | 13 +-------- 5 files changed, 9 insertions(+), 39 deletions(-) diff --git a/.gitignore b/.gitignore index cf145f1..02e56b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ build/ log/ +install/diagnostics/ diff --git a/install/diagnostics/lib/diagnostics/diagnostics b/install/diagnostics/lib/diagnostics/diagnostics index e5b284d519bf6e4bd7ed06c10df5799e4ad71c5a..d8aeb004a0934adc78e1615615244e592e53122d 100755 GIT binary patch literal 19544 zcmeHPeQ;D&mcQK)i72K~(F~}x0*WF{Is^#gGImHBIzxz&1i=q{bht0{Mc36WW@as|8ZFsc9d&gvi1M*pj!^3d);KP@I@K9*j6rAO4BGoU_ucdI z`qAyqq~?#=tz4>e?)jaMd+)jTy?5Wo;jjI5%bX5};4)5pM-b;e*Fbzqu(n23KzyQ7 zOu}Ecm@du$KVD*n+-DF-jdIMHON$jg4wURlsgj3YWWa(c_mC*r6)I~d84{+#W$X6mVZsUVS>Rkwc1f^isu^g;w8D%rN-UBgHipWaFN|?Wj9;d zF?FeUGUa%Z8~Rl$zjj&%85O2>yEbKKr!|I|U`lOJY5YhJkEXo_WjA}K;m1xNHekV& z+q)ii6qi4?@HDSd?G>7bVHHoNG~ZO_wMUy5R?KS;&ux#!Qr&aAD;LgPSm8;=J>^nP z{c__+YifD@Y5_O>gsCtJXOF?NKa!oVyvA5J-Phw`?pW~?1F9I8+e3t zsNZBmI#kG?>Z0VSej$FOW5i>JtP@7%NaW`oQyx6K+Tc$Ay9|&zv~z?JILwDvpuv22 zcLDs30{E{A;4c;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QDU{_84;~wzlbkCQzhLL>G1Te zCa5VHK?c`INJ2=FHlMyZarKr!qJ_CbTcfB#P(3aroAH%_lCp6%$!L(p!>s`_kVoyU zI&<@{HEtZbn`2<Ao84s`~me^Hh=?c1sMHT&v6yqAp1jYq}ZwctLLc^V5Fkz_mU!tqUt%Y zK!p!=OqBKk=^3lCSI<=y^-E=JEApcB6uk~8J+oE3dTy)eE@?;2qIRnGOPKAz0gZ{W zSI?0ZRnL)C{mNeT|LfBJ66sJqmsV6g$0mDv7GSmiHZY2-^3PmgsJQqicGPl_nalfw_LQudS$hA42I{onIl0I*-SI=b> zeafP5amQY@*cZtSH$~~Wj=5OE!QQmkPm#}&6s70G=3=e?ZxGU}6sj8aTv+8FSMyx? zQ1vTXfZ!LK?A3GVLl+7QrDtbf411dUs($tSO68NM=c`oYvSOS+Y92fc8I8ZPSMQMw zUPM-yFC;V-)gDEsKyJ1-_S3z>$YrvnLuIGnGhs}as^42DBrdO@USncOUJ&Dx@^DlA zr3NAnl>IylPP$ag)KUeP*LgW%YiV&uq31R<&Fc@_f;%l;cc_of{H diff --git a/src/main/diagnostics.cpp b/src/main/diagnostics.cpp index 0148fa3..80c84a3 100644 --- a/src/main/diagnostics.cpp +++ b/src/main/diagnostics.cpp @@ -9,27 +9,7 @@ App::App() yaml_parser = new_yaml_parser; } -int App::appGetUserSelection(int * selection) -{ - while (true) { - std::string user_input; - std::cout << ">"; - getline(std::cin, user_input); - - try { - if (user_input.compare("q") == 0) { - *selection = -1; - } else { - *selection = stoi(user_input); - } - return 0; - } catch (std::invalid_argument const& ex) { - std::cout << "Diagnosics: " << ex.what() << std::endl; - } - } - - -} +int App::appGetUserSelection(std::string * selection) { return 0; } App::~App() { @@ -46,13 +26,13 @@ int main(int argc, char ** argv) App diagnostics_app; while (true) { - int user_select; + std::string user_select; status = diagnostics_app.appGetUserSelection(&user_select); if (status) { std::cout << "Error in parsing user input. Exiting." << std::endl; } - if (user_select < 0) { + if (user_select == "q") { break; } else { std::cout << "Option " << user_select << " chosen." << std::endl; diff --git a/src/main/diagnostics.h b/src/main/diagnostics.h index fbffc26..67e6436 100644 --- a/src/main/diagnostics.h +++ b/src/main/diagnostics.h @@ -3,9 +3,9 @@ /* Include Files */ #include +#include #include #include -#include #include "boatTest_common.h" #include "commonUI.h" @@ -15,11 +15,11 @@ class App { public: - CommonUI * ui; - YamlParser * yaml_parser; + CommonUI * ui; + YamlParser * yaml_parser; App(); - int appGetUserSelection(int * selection); + int appGetUserSelection(std::string * selection); ~App(); }; diff --git a/src/ui/common/commonUI.cpp b/src/ui/common/commonUI.cpp index 2c6056b..c87f552 100644 --- a/src/ui/common/commonUI.cpp +++ b/src/ui/common/commonUI.cpp @@ -3,18 +3,7 @@ CommonUI::CommonUI() { terminal_width = getTerminalWidth(); } CommonUI::CommonUI(int user_set_width) { terminal_width = user_set_width; } -int CommonUI::getTerminalWidth() -{ - int current_width; - struct winsize size; - ioctl(STDOUT_FILENO, TIOCGWINSZ, &size); - if (size.ws_col > TERMINAL_WIDTH_MIN) { - current_width = static_cast(size.ws_col * TERMINAL_WIDTH_SCALE); - } else { - current_width = size.ws_col; - } - return current_width; -} +int CommonUI::getTerminalWidth() { return 0; } void CommonUI::printDiv() const {