]> git.mxchange.org Git - simgear.git/blobdiff - simgear/debug/logstream.hxx
Update bounding box if calling update() on canvas elements
[simgear.git] / simgear / debug / logstream.hxx
index f50a4cc2124489ce204943993eb53ae5888b1d42..0af98c6a71a7d05dc5be344d6308e7c219b8c746 100644 (file)
 #include <simgear/compiler.h>
 #include <simgear/debug/debug_types.h>
 
-#include <vector>
 #include <sstream>
-#include <memory> // for std::auto_ptr
-     
-typedef std::vector<std::string> string_list;
  
 // forward decls
 class SGPath;
@@ -48,27 +44,6 @@ public:
         const char* file, int line, const std::string& aMessage) = 0;
 };
      
-     
-class BufferedLogCallback : public LogCallback
-{
-public:
-    BufferedLogCallback(sgDebugClass c, sgDebugPriority p);
-    virtual ~BufferedLogCallback();
-    
-    virtual void operator()(sgDebugClass c, sgDebugPriority p, 
-        const char* file, int line, const std::string& aMessage);
-    
-    /**
-     * copy the buffered log data into the provided output list
-     * (which will be cleared first). This method is safe to call from
-     * any thread.
-     */
-    void threadsafeCopy(string_list& aOutput);
-private:
-    class BufferedLogCallbackPrivate;
-    std::auto_ptr<BufferedLogCallbackPrivate> d;
-};
-     
 } // of namespace simgear
 
 /**
@@ -118,9 +93,8 @@ public:
      * must use appropriate locking.
      */
     void addCallback(simgear::LogCallback* cb);
-    
-  //  friend logstream& sglog();
-//    static logstream *initGlobalLogstream();
+     
+    void removeCallback(simgear::LogCallback* cb);
 
 private:
     // constructor