diff options
Diffstat (limited to 'src/Utils')
| -rw-r--r-- | src/Utils/.Utils.hpp.swp | bin | 12288 -> 0 bytes | |||
| -rw-r--r-- | src/Utils/Utils.hpp | 11 | ||||
| -rw-r--r-- | src/Utils/catch.cpp | 22 |
3 files changed, 0 insertions, 33 deletions
diff --git a/src/Utils/.Utils.hpp.swp b/src/Utils/.Utils.hpp.swp Binary files differdeleted file mode 100644 index 08be885..0000000 --- a/src/Utils/.Utils.hpp.swp +++ /dev/null diff --git a/src/Utils/Utils.hpp b/src/Utils/Utils.hpp deleted file mode 100644 index 32c07ed..0000000 --- a/src/Utils/Utils.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#include <string> - -#ifndef UTILS_HPP - -class Utils{ -public: - int catchInputInt(int* input); - int catchReturn(int renum); -}; - -#endif diff --git a/src/Utils/catch.cpp b/src/Utils/catch.cpp deleted file mode 100644 index 37ebefe..0000000 --- a/src/Utils/catch.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "Utils.hpp" - -#include <iostream> -#include <ostream> - -int Utils::catchInputInt(int* input){ - std::cin >> input; - - if (std::cin.fail()) { - std::cout << "error: Input failed" << std::endl; - return 1; - } - - return 0; -} - -int Utils::catchReturn(int renum){ - if (renum != 0) { - std::cout << "Received error signal, sending further" << std::endl; - } - return 0; -} |
