end 01 06
This commit is contained in:
parent
0dea92d24f
commit
1adb025a09
@ -6,13 +6,13 @@
|
|||||||
# By: apommier <apommier@student.42.fr> +#+ +:+ +#+ #
|
# By: apommier <apommier@student.42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2022/06/21 23:38:45 by apommier #+# #+# #
|
# Created: 2022/06/21 23:38:45 by apommier #+# #+# #
|
||||||
# Updated: 2022/06/21 23:40:23 by apommier ### ########.fr #
|
# Updated: 2022/06/21 23:46:38 by apommier ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
NAME = harlFilter
|
NAME = harlFilter
|
||||||
SRCS = main.cpp\
|
SRCS = main.cpp\
|
||||||
|
Harl.cpp
|
||||||
|
|
||||||
OBJS = ${SRCS:.cpp=.o}
|
OBJS = ${SRCS:.cpp=.o}
|
||||||
CC = c++
|
CC = c++
|
||||||
|
|||||||
@ -6,8 +6,31 @@
|
|||||||
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
|
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2022/06/21 23:40:41 by apommier #+# #+# */
|
/* Created: 2022/06/21 23:40:41 by apommier #+# #+# */
|
||||||
/* Updated: 2022/06/21 23:40:55 by apommier ### ########.fr */
|
/* Updated: 2022/06/21 23:52:51 by apommier ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#include "Harl.hpp"
|
#include "Harl.hpp"
|
||||||
|
|
||||||
|
int main(int ac, char **av)
|
||||||
|
{
|
||||||
|
Harl harl;
|
||||||
|
bool freeHarl = 0;
|
||||||
|
std::string levelTab[4] = {"DEBUG", "INFO", "WARNING", "ERROR"};
|
||||||
|
|
||||||
|
if (ac != 2)
|
||||||
|
return (0);
|
||||||
|
for (int j = 0; j < 4; j++)
|
||||||
|
{
|
||||||
|
if (av[1] == levelTab[j])
|
||||||
|
freeHarl = 1;
|
||||||
|
if (freeHarl == 1)
|
||||||
|
{
|
||||||
|
while (j < 4)
|
||||||
|
{
|
||||||
|
harl.complain(levelTab[j]);
|
||||||
|
j++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user