]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Added a function to the logstream class telling the user whether a file has been...
authorprill <prill@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 Sep 2007 13:16:39 +0000 (13:16 +0000)
committerprill <prill@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 Sep 2007 13:16:39 +0000 (13:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@15214 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/logstream.h
deal.II/base/source/log.cc

index b9d8b3a07587951caffb52ddb170c1cd2240e5ef..0e7971597982e61aff8ed3ef803364fdec4d73b2 100644 (file)
@@ -95,6 +95,12 @@ class LogStream
                                      */
     std::ostream& get_file_stream ();
 
+                                    /**
+                                     * @return true, if file stream
+                                     * has already been attached.
+                                     */
+    bool has_file () const;
+    
                                     /**
                                      * Reroutes cerr to LogStream.
                                      * Works as a switch, turning
index 50df78c862933d9b1cd2efca0380a07e4ce71979..9151fff8380c4df740e743040cdd5c36cc7d0c10 100644 (file)
@@ -103,6 +103,13 @@ LogStream::get_file_stream()
 }
 
 
+bool
+LogStream::has_file() const
+{
+  return (file != 0);
+}
+
+
 const std::string&
 LogStream::get_prefix() const
 {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.