OSDN Git Service

ファイルの移動
authorcaprice <caprice@users.sourceforge.jp>
Sun, 20 Apr 2014 14:33:35 +0000 (23:33 +0900)
committercaprice <caprice@users.sourceforge.jp>
Sun, 20 Apr 2014 14:33:35 +0000 (23:33 +0900)
include/communication/communication.hpp [moved from include/communication.hpp with 100% similarity]
include/communication/message/failure.hpp [moved from include/message/failure.hpp with 100% similarity]
include/communication/message/request.hpp [moved from include/message/request.hpp with 100% similarity]
include/communication/message/succeed.hpp [moved from include/message/succeed.hpp with 100% similarity]
include/failure.hpp [new file with mode: 0644]
include/impl/communication.hpp [new file with mode: 0644]
include/interprocess-communication.hpp [deleted file]
include/query.hpp [deleted file]
include/reference-counter.hpp [moved from src/reference-counter.hpp with 100% similarity]
include/request.hpp [new file with mode: 0644]
include/succeed.hpp [new file with mode: 0644]

diff --git a/include/failure.hpp b/include/failure.hpp
new file mode 100644 (file)
index 0000000..a52f0cb
--- /dev/null
@@ -0,0 +1,14 @@
+//
+//  failure.hpp
+//  core
+//
+//  Created by caprice on 2014/03/17.
+//  Copyright (c) 2014年 caprice. All rights reserved.
+//
+
+#ifndef core_failure_hpp
+#define core_failure_hpp
+
+
+
+#endif
diff --git a/include/impl/communication.hpp b/include/impl/communication.hpp
new file mode 100644 (file)
index 0000000..d80d3ac
--- /dev/null
@@ -0,0 +1,14 @@
+//
+//  communication.hpp
+//  core
+//
+//  Created by caprice on 2014/03/17.
+//  Copyright (c) 2014年 caprice. All rights reserved.
+//
+
+#ifndef core_communication_hpp
+#define core_communication_hpp
+
+
+
+#endif
diff --git a/include/interprocess-communication.hpp b/include/interprocess-communication.hpp
deleted file mode 100644 (file)
index 2233238..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-
-#ifndef GIKOMONA_CORE_INTERPROCESS_COMMUNICATION_HPP
-#define GIKOMONA_CORE_INTERPROCESS_COMMUNICATION_HPP
-
-#include "string.hpp"
-
-namespace monazilla { namespace GikoMona { namespace core { namespace interprocess {
-
-class message_trait {
-public:
-    static mona_string to_string() const;
-};
-
-class communication {
-public:
-    communication();
-    ~comunication();
-    
-    bool connect();
-    
-    template <class MessageTypa>
-    bool send_message(MessageType&& msg);
-    
-    template <class MessageType>
-    bool send_message_async(MessageType&& msg);
-    
-    bool read_message();
-    bool read_message_async();
-    
-private:
-    bool send_string(mona_string&& src);
-    bool send_string_async(mona_string&& src);
-};
-
-template <class MessageType>
-bool communication::send_message(MessageType&& msg);
-
-} } } }
-
-#endif // GIKOMONA_CORE_INTERPROCESS_COMMUNICATION_HPP
diff --git a/include/query.hpp b/include/query.hpp
deleted file mode 100644 (file)
index b2762e4..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-#ifndef GIKOMONA_CORE_QUERY_HPP_INCLUDED
-#define GIKOMONA_CORE_QUERY_HPP_INCLUDED
-
-#include <boost/fusion/include/vector.hpp>
-#include <boost/mpl/bool.hpp>
-
-#include "GikoMona.hpp"
-
-namespace monazilla { namespace GikoMona { namespace core {
-   
-template <typename T>
-struct is_satisfied_with_query_concept : public boost::mpl::false_ {};
-
-/**
- *  @brief このクラスは query_concept を満たす全てのクラスが継承しなければならない。
- */
-class query {
-public:
-    /// query_concept を満たすクラスは自分自身の型を self_type として表明しなければならない。
-    typedef query self_type;
-    
-    template <typename T, typename U>
-    using enable_if_T_is_U = typename std::enable_if<std::is_same<T, U>::value>::type;
-    
-    /// query_concept を満たすクラスは外部から構築可能でなければならない。
-    query() {}
-    /// query_concept を満たすクラスは外部から解体可能でなければならない。
-    ~query() {}
-    
-    /**
-     *  @breif query_concept を満たすクラスはこの関数と同じ型、名前を持つ関数を持っていなければならない。
-     *  @retval true insert 操作が成功した
-     *          false insert 操作に失敗した
-     *  @param[in] into どのテーブルのどの要素に対し insertion query を実行するかを記述する。
-     *                  記述の仕方は次の通り:(テーブル名)/[(サブテーブル名)/]*(要素名)
-     *  @param[in] value テーブルに対して代入する値を記述する。
-     *  @note さらに、最大限 multi-threading な環境を考慮しなければならない。
-     */
-    template <typename T, typename U, typename ...ValueType>
-    virtual
-    bool insert(const mona_string& into,
-                const boost::fusion::vector<T, U, ValueType...>& value) override {}
-    
-    template <typename T>
-    virtual
-    bool insert(const mona_string& into,
-                const boost::fusion::vector<T>& value) override {}
-    
-    template <typename T>
-    virtual
-    bool insert(const mona_string& into,
-                const boost::any& value,
-                enable_if_T_is_U<T, boost::any>*& = enabler) override {}
-    
-    /**
-     *  @brief query_concept を満たすクラスはこの関数と同じ型、名前を持つ関数を持っていなければならない。
-     *  @return 引数で指定したテーブルの要素から、テンプレートで指定した方に変換された値が返される。
-     */
-    template <typename T>
-    virtual
-    T select(const mona_string& column,
-             const mona_string& from) const noexcept override {}
-    
-    template <typename T>
-    virtual
-    boost::any select(const mona_string& column,
-                      const mona_string& from,
-                      enable_if_T_is_U<T, boost::any>*& = enabler) const noexcept override {}
-    
-    template <typename ...ValueType>
-    virtual
-    boost::fusion::vector<ValueType...>
-    select_all(const mona_string& from) const noexcept override {}
-};
-
-} } }
-
-#endif
\ No newline at end of file
diff --git a/include/request.hpp b/include/request.hpp
new file mode 100644 (file)
index 0000000..5e15e2e
--- /dev/null
@@ -0,0 +1,14 @@
+//
+//  request.hpp
+//  core
+//
+//  Created by caprice on 2014/03/17.
+//  Copyright (c) 2014年 caprice. All rights reserved.
+//
+
+#ifndef core_request_hpp
+#define core_request_hpp
+
+
+
+#endif
diff --git a/include/succeed.hpp b/include/succeed.hpp
new file mode 100644 (file)
index 0000000..a904d0f
--- /dev/null
@@ -0,0 +1,14 @@
+//
+//  succeed.hpp
+//  core
+//
+//  Created by caprice on 2014/03/17.
+//  Copyright (c) 2014年 caprice. All rights reserved.
+//
+
+#ifndef core_succeed_hpp
+#define core_succeed_hpp
+
+
+
+#endif