[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/strigi/src/streamindexer
From:       Jos van den Oever <jos () vandenoever ! info>
Date:       2006-11-24 7:30:45
Message-ID: 1164353445.400479.14237.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 607332 by vandenoever:

add information returning functions to the analyzer factories.

 M  +10 -0     strigi_plugins.h  


--- trunk/playground/base/strigi/src/streamindexer/strigi_plugins.h #607331:607332
@@ -24,11 +24,15 @@
 #include "streamthroughanalyzer.h"
 #include "streamendanalyzer.h"
 #include <vector>
+#include <list>
 
 class ThroughAnalyzerFactory {
 public:
     virtual ~ThroughAnalyzerFactory() {}
     virtual jstreams::StreamThroughAnalyzer* create() = 0;
+    virtual std::list<std::string> getFieldNames() {
+        return std::list<std::string>();
+    }
 };
 
 template<typename CLASS>
@@ -88,6 +92,12 @@
     jstreams::StreamEndAnalyzer* create(){
         return new CLASS;
     }
+    virtual std::list<std::string> getFieldNames() {
+        return std::list<std::string>();
+    }
+    virtual bool readsSubStreams() const {
+        return false;
+    }
 };
 std::vector<EndAnalyzerFactory*> strigi_end_analyzer_factories;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic