+/**
+ * \brief Accessor to know whether debug info are redirected to file
+ */
+bool Debug::GetDebugToFile ()
+{
+ return DebugToFile;
+}
+
+/**
+ * \brief Set the filename the debug stream should be redirect to
+ * Settting a filename also sets DebugToFile to true
+ * @param filename File to redirect debug info
+ * Absolutely nothing is check. You have to pass in
+ * a correct filename
+ */
+void Debug::SetDebugFilename (std::string const &filename)
+{
+ DebugToFile = true; // Just in case ...
+ DebugFlag = true; // Just in case ...
+ if ( DebugFile.is_open() )
+ DebugFile.close();
+ DebugFile.open( filename.c_str() );
+}