OpenMining
0.01
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Pages
utils
Exit.h
Go to the documentation of this file.
1
#ifndef Exit_h
2
#define Exit_h
3
4
#include <iostream>
5
6
namespace
utils
7
{
8
template
<
class
T>
9
void
Exit
(T& msg, int32_t error_code)
10
{
11
std::cerr << msg << std::endl;
12
exit (error_code);
13
}
14
15
template
<
class
T>
16
void
Exit
(T& msg1, T& msg2, int32_t error_code)
17
{
18
std::cerr <<
"Error! "
<< msg1 <<
": "
<< msg2 << std::endl;
19
exit (error_code);
20
}}
21
#endif
utils::Exit
void Exit(T &msg, int32_t error_code)
Definition:
Exit.h:9
Generated on Tue Feb 4 2014 11:05:43 for OpenMining by
1.8.6