X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;ds=sidebyside;f=TextCollection.h;fp=TextCollection.h;h=2ea24ca57133e98350c758a9132b34118dbafe87;hb=ed61d2042a7ad7dd83bae32d7c31e69504dafa80;hp=dbc79822fe5bb33f7752fe65be84fc2d056b3f6c;hpb=9042e7b1b181a50b15e8ec1b79d5a5c2f913bfff;p=SXSI%2FTextCollection.git diff --git a/TextCollection.h b/TextCollection.h index dbc7982..2ea24ca 100644 --- a/TextCollection.h +++ b/TextCollection.h @@ -42,16 +42,18 @@ namespace SXSI // Type for text position (FIXME ulong or long?) typedef ulong TextPosition; + // mode flag: Default includes both the index and "naive" text + enum index_mode_t { index_mode_default, index_mode_text_only }; // index_mode_index_only + /** * Load from a file * * New samplerate can be given, otherwise will use the one specified in the save file! - * Note: This is not a static method; call InitTextCollection() first to get the object handle. * * Throws an exception if std::fread() fails. * */ - static TextCollection* Load(FILE *, unsigned samplerate = 0); + static TextCollection* Load(FILE *, index_mode_t = index_mode_default, unsigned samplerate = 0); /** * Save data structure into a file @@ -197,6 +199,8 @@ namespace SXSI // Protected constructor; use TextCollectionBuilder TextCollection() { }; +// index_mode_t indexMode; + // No copy constructor or assignment TextCollection(TextCollection const&); TextCollection& operator = (TextCollection const&);