// 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
// Protected constructor; use TextCollectionBuilder
TextCollection() { };
+// index_mode_t indexMode;
+
// No copy constructor or assignment
TextCollection(TextCollection const&);
TextCollection& operator = (TextCollection const&);