log.hpp

Go to the documentation of this file.
00001 
00022 #ifndef __MLPACK_CORE_IO_LOG_HPP
00023 #define __MLPACK_CORE_IO_LOG_HPP
00024 
00025 #include <string>
00026 
00027 #include "prefixedoutstream.hpp"
00028 #include "nulloutstream.hpp"
00029 
00030 namespace mlpack {
00031 
00065 class Log
00066 {
00067  public:
00073   static void Assert(bool condition,
00074                      const std::string& message = "Assert Failed.");
00075 
00076 
00077   // We only use PrefixedOutStream if the program is compiled with debug
00078   // symbols.
00079 #ifdef DEBUG
00081   static util::PrefixedOutStream Debug;
00082 #else
00084   static util::NullOutStream Debug;
00085 #endif
00086 
00089   static util::PrefixedOutStream Info;
00090 
00092   static util::PrefixedOutStream Warn;
00093 
00095   static util::PrefixedOutStream Fatal;
00096 
00098   static std::ostream& cout;
00099 };
00100 
00101 }; //namespace mlpack
00102 
00103 #endif

Generated on 29 Sep 2016 for MLPACK by  doxygen 1.6.1