X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=TextCollectionBuilder.h;h=6b3819a2ead0ff2aba0fa7ac9f3f350bd9ac556c;hb=47be601752d3cd9d24c831a16621cd6d4ced6670;hp=1eb0275550fb05145972dfd0ad5399cf3400cdd0;hpb=e36f9fc04d80b572987d00d6a6ae15af08ad1dbb;p=SXSI%2FTextCollection.git diff --git a/TextCollectionBuilder.h b/TextCollectionBuilder.h index 1eb0275..6b3819a 100644 --- a/TextCollectionBuilder.h +++ b/TextCollectionBuilder.h @@ -24,6 +24,8 @@ #include "TextCollection.h" #include "TextStorage.h" #include "Tools.h" // Defines ulong and uchar. + +#include #include #include // Defines std::pair. #include // Defines std::strlen, added by Kim @@ -59,8 +61,12 @@ namespace SXSI * Can not be called after makeStatic(). * The i'th text insertion gets an identifier value i-1. * In other words, document identifiers start from 0. + * + * Second parameter tells if the text will be added to the + * index also. If false, text is added only to the TextCollection + * and can not be searched for. */ - void InsertText(uchar const *); + void InsertText(uchar const *, bool index = true); /** * Make static * @@ -73,6 +79,7 @@ namespace SXSI TextCollection * InitTextCollection(char type = TextStorage::TYPE_PLAIN_TEXT); private: + // Using Pimpl idiom to hide RLCSA implementation. struct TCBuilderRep * p_; // No copy constructor or assignment