X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=TextCollectionBuilder.h;h=1eb0275550fb05145972dfd0ad5399cf3400cdd0;hb=e36f9fc04d80b572987d00d6a6ae15af08ad1dbb;hp=9bac6f90e1f0deae57b92dd1b520428aaf59b590;hpb=7cdaf25b1e5f1890e359b3ad37ab7ec2c9e30d5a;p=SXSI%2FTextCollection.git diff --git a/TextCollectionBuilder.h b/TextCollectionBuilder.h index 9bac6f9..1eb0275 100644 --- a/TextCollectionBuilder.h +++ b/TextCollectionBuilder.h @@ -22,6 +22,7 @@ #define _SXSI_TextCollectionBuilder_h_ #include "TextCollection.h" +#include "TextStorage.h" #include "Tools.h" // Defines ulong and uchar. #include #include // Defines std::pair. @@ -63,10 +64,13 @@ namespace SXSI /** * Make static * - * Convert to a static collection; reduces space and time complexities. + * Convert to a static collection. * New texts can not be inserted after this operation. + * + * TextStorage type defaults to TYPE_PLAIN_TEXT, another + * possible type is TYPE_LZ_INDEX. */ - TextCollection * InitTextCollection(); + TextCollection * InitTextCollection(char type = TextStorage::TYPE_PLAIN_TEXT); private: struct TCBuilderRep * p_;