\hypertarget{Toolbox_8hpp_source}{}\doxysection{Toolbox.\+hpp} \label{Toolbox_8hpp_source}\index{src/Generic/ConsoleInterface/Toolbox.hpp@{src/Generic/ConsoleInterface/Toolbox.hpp}} \mbox{\hyperlink{Toolbox_8hpp}{Go to the documentation of this file.}} \begin{DoxyCode}{0} \DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef HEADER\_CONSOLEINTERFACE\_TOOLBOX}} \DoxyCodeLine{2 \textcolor{preprocessor}{\#define HEADER\_CONSOLEINTERFACE\_TOOLBOX}} \DoxyCodeLine{3 } \DoxyCodeLine{4 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{5 \textcolor{preprocessor}{\#include "{}../List/List.hpp"{}}} \DoxyCodeLine{6 \textcolor{preprocessor}{\#include "{}../String/String.h"{}}} \DoxyCodeLine{7 } \DoxyCodeLine{16 \textcolor{preprocessor}{\#define MAX\_LINE\_WIDTH 1024}} \DoxyCodeLine{17 } \DoxyCodeLine{19 \textcolor{keywordtype}{void} \mbox{\hyperlink{Toolbox_8hpp_a65477b86cd99f1670bf1234960255baf}{inputLineBox}}(\textcolor{keywordtype}{char}* output, \textcolor{keywordtype}{unsigned} maxWidth, \textcolor{keywordtype}{bool} ignore = \textcolor{keyword}{true});} \DoxyCodeLine{20 } \DoxyCodeLine{22 \textcolor{keywordtype}{void} \mbox{\hyperlink{Toolbox_8hpp_a138328aaa20f2a8a514e4d7e6fc9c325}{printTable}}(\textcolor{keyword}{const} \mbox{\hyperlink{classList}{List}}\& items, \textcolor{keywordtype}{unsigned} columns);} \DoxyCodeLine{23 } \DoxyCodeLine{25 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>} \DoxyCodeLine{26 \textcolor{keywordtype}{void} \mbox{\hyperlink{Toolbox_8hpp_a3c9098dc2b305107367c56ded5dec787}{read}}(T* storage) \{} \DoxyCodeLine{27 std::cin >> storage;} \DoxyCodeLine{28 \}} \DoxyCodeLine{29 } \DoxyCodeLine{31 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>} \DoxyCodeLine{32 \textcolor{keywordtype}{void} \mbox{\hyperlink{Toolbox_8hpp_a3c9098dc2b305107367c56ded5dec787}{read}}(T\& storage) \{} \DoxyCodeLine{33 std::cin >> storage;} \DoxyCodeLine{34 \}} \DoxyCodeLine{35 } \DoxyCodeLine{37 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>} \DoxyCodeLine{38 \textcolor{keywordtype}{void} \mbox{\hyperlink{Toolbox_8hpp_a5ca1093462d3266fceb8522e144c1e73}{print}}(\textcolor{keyword}{const} T* item) \{} \DoxyCodeLine{39 std::cout << item;} \DoxyCodeLine{40 \}} \DoxyCodeLine{41 } \DoxyCodeLine{43 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>} \DoxyCodeLine{44 \textcolor{keywordtype}{void} \mbox{\hyperlink{Toolbox_8hpp_a5ca1093462d3266fceb8522e144c1e73}{print}}(\textcolor{keyword}{const} T\& item) \{} \DoxyCodeLine{45 std::cout << item;} \DoxyCodeLine{46 \}} \DoxyCodeLine{47 } \DoxyCodeLine{49 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>} \DoxyCodeLine{50 \textcolor{keywordtype}{void} \mbox{\hyperlink{Toolbox_8hpp_a148d9d6b8b15bbfc2b1f4cdb16c2ee81}{printLine}}(\textcolor{keyword}{const} T* item) \{} \DoxyCodeLine{51 std::cout << item << std::endl;} \DoxyCodeLine{52 \}} \DoxyCodeLine{53 } \DoxyCodeLine{55 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>} \DoxyCodeLine{56 \textcolor{keywordtype}{void} \mbox{\hyperlink{Toolbox_8hpp_a148d9d6b8b15bbfc2b1f4cdb16c2ee81}{printLine}}(\textcolor{keyword}{const} T\& item) \{} \DoxyCodeLine{57 std::cout << item << std::endl;} \DoxyCodeLine{58 \}} \DoxyCodeLine{59 } \DoxyCodeLine{60 \textcolor{preprocessor}{\#endif}} \end{DoxyCode}