Adds external flush function,
[SXSI/XMLTree.git] / XMLTreeBuilder.h
index 055eeda..c7a9036 100644 (file)
@@ -67,7 +67,7 @@ class XMLTreeBuilder {
    int eta_size;\r
    // Allows to disable the TextCollection for benchmarkin purposes\r
    bool disable_tc;\r
-\r
+   TextCollectionBuilder::index_type_t text_index_type;\r
 public:\r
 \r
    XMLTreeBuilder() {;};\r
@@ -82,7 +82,8 @@ public:
     * (i.e. everything is considered an empty text *)\r
     * Returns a non-zero value upon success, NULLT in case of \r
     * error. */\r
-   int OpenDocument(bool empty_texts, int sample_rate_text, bool dtc);\r
+   int OpenDocument(bool empty_texts, int sample_rate_text, bool dtc,\r
+                   TextCollectionBuilder::index_type_t index_type);\r
 \r
    /** CloseDocument(): finishes the construction of the data structure for \r
     * the XML document. Tree and tags are represented in the final form, \r