Added TextCollection::Save() and TextCollection::Load() functionality
[SXSI/TextCollection.git] / CSA.h
diff --git a/CSA.h b/CSA.h
index 1ecddc6..9f6c500 100644 (file)
--- a/CSA.h
+++ b/CSA.h
@@ -80,9 +80,9 @@ public:
     // full_result is inherited from SXSI::TextCollection.
     full_result FullContains(uchar const *) const;
 
-    // TODO implement:
+    // Index from/to disk
     void Load(FILE *, unsigned);
-    void Save(FILE *);
+    void Save(FILE *) const;
 
 private:
     class TCodeEntry {
@@ -216,6 +216,7 @@ private:
     uchar * BWT(uchar *);
     uchar * LoadFromFile(const char *);
     void SaveToFile(const char *, uchar *);
+    void makewavelet(uchar *);
     void maketables();
 
     // Following are not part of the public API