Added RLCSA index option
[SXSI/TextCollection.git] / TextCollection.cpp
index 1755b6b..abc6f91 100644 (file)
@@ -1,6 +1,7 @@
 #include "TextCollection.h"
 #include "FMIndex.h"
 #include "SWCSAWrapper.h"
+#include "RLCSAWrapper.h"
 
 namespace SXSI
 {
@@ -23,6 +24,9 @@ namespace SXSI
         case 'W':
             return new SWCSAWrapper(fp, filename);
             break;
+        case 'R':
+            return new RLCSAWrapper(fp, filename);
+            break;
         }
 
         std::cerr << "TextCollection::Load(): invalid save file version or corrupted input file." << std::endl;