OSDN Git Service

driver.hpp: table name
authormyun2 <myun2@nwhite.info>
Sun, 29 Jul 2012 09:18:14 +0000 (18:18 +0900)
committermyun2 <myun2@nwhite.info>
Sun, 29 Jul 2012 09:18:29 +0000 (18:18 +0900)
roast/include/roast/db/nitro/driver.hpp

index 8e53230..d2b7504 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef __SFJP_ROAST_db__nitro__driver_HPP__
 #define __SFJP_ROAST_db__nitro__driver_HPP__
 
+#include <string>
+
 namespace roast
 {
        namespace tiny_db
@@ -31,15 +33,21 @@ namespace roast
                        
                private:
                        int m_type;
+                       ::std::string m_table_name;
                public:
-                       driver(int type) : m_type(type){}
+                       driver(int type) : m_type(type) {}      //      no-name of table name (for memory table)
+                       driver(int type, const char* table_name) : m_type(type), m_table_name(table_name) {}
                };
                
+               ////////////
+               
                class file_driver
                {
                
                };
                
+               ////////////
+               
                class memory_driver
                {