MLPACK
1.0.8
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
mlpack
core
util
log.hpp
Go to the documentation of this file.
1
22
#ifndef __MLPACK_CORE_IO_LOG_HPP
23
#define __MLPACK_CORE_IO_LOG_HPP
24
25
#include <string>
26
27
#include "
prefixedoutstream.hpp
"
28
#include "
nulloutstream.hpp
"
29
30
namespace
mlpack {
31
65
class
Log
66
{
67
public
:
73
static
void
Assert
(
bool
condition,
74
const
std::string& message =
"Assert Failed."
);
75
76
77
// We only use PrefixedOutStream if the program is compiled with debug
78
// symbols.
79
#ifdef DEBUG
80
81
static
util::PrefixedOutStream
Debug
;
82
#else
83
84
static
util::NullOutStream
Debug
;
85
#endif
86
89
static
util::PrefixedOutStream
Info
;
90
92
static
util::PrefixedOutStream
Warn
;
93
95
static
util::PrefixedOutStream
Fatal
;
96
98
static
std::ostream&
cout
;
99
};
100
101
};
//namespace mlpack
102
103
#endif
Generated by
1.8.3.1