OSDN Git Service

[core] :
authorcaprice <caprice@users.sourceforge.jp>
Tue, 23 Jul 2013 13:06:08 +0000 (22:06 +0900)
committercaprice <caprice@users.sourceforge.jp>
Tue, 23 Jul 2013 13:06:08 +0000 (22:06 +0900)
* load_file() : 引数が抜けていたので追加した。
* exec_inserted_query() : queryの大幅変更に伴う修正を加えた。

core/src/model.cpp

index 576cc7d..f6a6b7a 100644 (file)
@@ -3,11 +3,35 @@
 
 namespace monazilla { namespace GikoMona { namespace core {
 
-bool model::load_file(const boost::filesystem::path& file_path) {
+bool model::load_file(const boost::filesystem::path& file_path,
+                      const mona_string& loaded_table_name) {
     if(boost::filesystem::exists(file_path)) {
         return false;
     }
     return true;
 }
 
+void model::exec_inserted_query()  {
+    inserted_query_triv_copyable_type q;
+    if(inserted_query_queue.empty()) {
+        return;
+    } else {
+        inserted_query_queue.pop(q);
+    }
+
+    mona_string into;
+    boost::any tup;
+    std::tie(*q, into, tup);
+
+    if(into.find_first_of("application")) {
+        // application/*
+    } else if (into.find_first_of("session")) {
+        // history
+    } else if(into.find_first_of("extension")) {
+        // extension/*
+    } else {
+        // ?
+    }
+}
+
 } } }