src/core/trace-resolver.h
changeset 1371 bebf690257c9
parent 1370 d5339e1c95df
child 1374 77468496f7e0
--- a/src/core/trace-resolver.h	Mon Aug 27 20:46:10 2007 +0200
+++ b/src/core/trace-resolver.h	Tue Aug 28 09:37:10 2007 +0200
@@ -70,15 +70,15 @@
    */
   virtual void Disconnect (std::string path, CallbackBase const &cb) = 0;
 
-  virtual void PrintAvailable (std::string path, const TraceContext &context, std::ostream &os) = 0;
-
-
   class SourceCollection
   {
   public:
     void Print (std::ostream &os) const;
     void AddUnique (std::string path, const TraceContext &context,
                     std::string help);
+    void SetFlag (void);
+    void ClearFlag (void);
+    bool IsFlagSet (void);
   private:
     struct Source
     {
@@ -88,9 +88,10 @@
     };
     typedef std::vector<struct Source> SourceVector;
     SourceVector m_sources;
+    bool m_flag;
   };
   virtual void CollectSources (std::string path, const TraceContext &context, 
-                               SourceCollection *collection) {}
+                               SourceCollection *collection) = 0;
 protected:
   /**
    * \param path a namespace path