EgoVideoStabilizer  1.0.0
message_handler.h
Go to the documentation of this file.
1 //
4 // SemanticFastForward_EPIC@ECCVW is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // SemanticFastForward_JVCI is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with SemanticFastForward_EPIC@ECCVW. If not, see <http://www.gnu.org/licenses/>.
16 //
18 
19 #ifndef MESSAGEHANDLER_H
20 #define MESSAGEHANDLER_H
21 #include <stdio.h>
22 #include <iostream>
23 #include <fstream>
24 #include "headers/error_messages.h"
25 
27 
29 {
30 public:
31  MessageHandler(std::string log_file_name);
32  ~MessageHandler(void);
33 
39  void reportError(ErrorMessage error_message);
40 
46  void reportError(ErrorMessage error_message, bool condition);
47 
53  void reportStatus(std::string status, Stream stream);
54 
55 private:
56  std::ofstream log_file;
57 
63  void printError(ErrorMessage error_message);
64 };
65 
66 #endif // MESSAGEHANDLER_H
void reportError(ErrorMessage error_message)
MessageHandler::reportError Report the specified error.
Definition: message_handler.cpp:36
ErrorMessage
The ErrorMessage enum The program can exit with following codes: -1 - Wrong number of input paramete...
Definition: error_messages.h:37
MessageHandler(std::string log_file_name)
Definition: message_handler.cpp:22
void reportStatus(std::string status, Stream stream)
MessageHandler::reportStatus Reports the given status to the log file, screen, or both...
Definition: message_handler.cpp:99
Stream
Definition: message_handler.h:26
Definition: message_handler.h:26
~MessageHandler(void)
Definition: message_handler.cpp:27
Definition: message_handler.h:28
Definition: message_handler.h:26
Definition: message_handler.h:26