Implentación de control de entrada. Arregla #2

Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>

Se ha implementado el control de entrada por teclado en la configuración
para asegurar que se introducen datos adecuados. Se usan expresiones
regulares, mediante la librería regex, para conseguir tal efecto.
This commit is contained in:
2020-10-28 16:12:21 +01:00
parent 67c4c4d4d5
commit 4e3bab68de
8 changed files with 54 additions and 10 deletions

View File

@ -20,6 +20,8 @@ namespace en{
const extern std::string confTiempo = "Current execution time > ";
const extern std::string confHilosInput = "- Number of threads\t> ";
const extern std::string confTiempoInput = "- Execution time\t> ";
const extern std::string confHilosError = "Must introduce a number";
const extern std::string confTiempoError = "The time format must be HH:mm:ss";
}
#endif // __EN_HPP_

View File

@ -20,6 +20,8 @@ namespace es{
const extern std::string confTiempo = "Tiempo actual > ";
const extern std::string confHilosInput = "- Número de hilos\t> ";
const extern std::string confTiempoInput = "- Tiempo de ejecución\t> ";
const extern std::string confHilosError = "Se debe introducir un número";
const extern std::string confTiempoError = "El formato del tiempo debe ser HH:mm:ss";
}
#endif // __ES_HPP_

View File

@ -20,6 +20,8 @@ namespace gl{
const extern std::string confTiempo = "Tempo actual > ";
const extern std::string confHilosInput = "- Número de filos\t> ";
const extern std::string confTiempoInput = "- Tempo de execución\t> ";
const extern std::string confHilosError = "Debese introducir un número";
const extern std::string confTiempoError = "O formato do tempo debe ser HH:mm:ss";
}
#endif // __GL_HPP_