io.hpp 1.04 KB
Newer Older
Matteo Spanio's avatar
update  
Matteo Spanio committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
 * @file io.hpp
 * @author Matteo Spanio (dev2@audioinnova.com)
 * @brief Header file containing a set of functions related to the input/output
 * @version 1.2
 * @date 2023-06-03
 *
 * @copyright Copyright (c) 2023
 *
 */
#ifndef PRETTYIO_H
#define PRETTYIO_H
#include <iostream>
#include <string>

#include "colors.hpp"

using namespace colors;

namespace videoanalyser {
/**
 * @namespace io
 * @brief Namespace containing all the functions related to the input/output
 * operations.
 */
namespace io {
/**
 * @fn void pprint(std::string msg, Color color = WHITE)
 * @brief Print a colored message in the terminal.
 *
 * @param msg The message to print.
 * @param color The color of the message. Default is WHITE.
 */
void pprint(std::string msg, Color color = WHITE);
/**
 * @fn void print_error_and_exit(std::string msg)
 * @brief Print a colored message in the terminal and exit the program.
 *
 * @param msg The message to print.
 */
void print_error_and_exit(std::string msg);
}  // namespace io
}  // namespace videoanalyser

#endif  // PRETTYIO_H