add set options method to facade chewing table
authorPeng Wu <alexepico@gmail.com>
Tue, 6 Dec 2011 03:42:33 +0000 (11:42 +0800)
committerPeng Wu <alexepico@gmail.com>
Tue, 6 Dec 2011 03:42:33 +0000 (11:42 +0800)
src/storage/facade_chewing_table.h

index 63b968a..e411589 100644 (file)
@@ -39,6 +39,16 @@ public:
         m_user_chewing_table = NULL;
     }
 
+    /* set options method */
+    bool set_options(pinyin_option_t options) {
+        bool result = false;
+        if (m_system_chewing_table)
+            result = m_system_chewing_table->set_options(options)  || result;
+        if (m_user_chewing_table)
+            result = m_user_chewing_table->set_options(options) || result;
+        return result;
+    }
+
     /* load/store method */
     bool load(pinyin_option_t options, MemoryChunk * system,
               MemoryChunk * user){