]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOSQLiteTreeHandler.h
Clean-Up with Juan Sebastien
[creaImageIO.git] / src2 / creaImageIOSQLiteTreeHandler.h
index 6948675d43d05fe154702695df4fab97a2558e7f..1172298500f114096ee6195b71b0687251853084 100644 (file)
@@ -217,47 +217,7 @@ namespace creaImageIO
  
        //======================================================================
 
-    /*
-    /// 
-    int DBQueryNumberOfChildren(tree::Node* n);
-    
-    // Insertion
-    bool DBInsert(tree::Node* alien_node) ; //, UpdateSummary& summary);
-    
-    //
-    std::string DBGetNodeId(tree::Node* node, const std::string& parent_id);
-
-    tree::Node* GetNodeFromTypeId(int level, 
-                                 const std::string& id);
-
-    // 
-    tree::Node* DBGetOrCreateNode(tree::Node* alien_node, 
-                                     tree::Node* internal_parent,
-                                     std::string parentid,
-                                 std::string& created_id);
-    //                               UpdateSummary& summary);
-    
-    tree::Node* DBGetOrCreateParent(tree::Node* alien_node,
-                                   std::string& parent_id);
-                                   //                             UpdateSummary& summary);
-    
-    void DBRecursiveGetOrCreateNode(tree::Node* alien_node, 
-                                        tree::Node* parent, 
-                                   const std::string& parent_id);
-    //                                  UpdateSummary& summary);
-    
-
-       */
-
-       /*
-
-    void BuildSQLFieldsValues(tree::Node* n,
-                             std::string& str);
-
-
-    tree::Node* GetChildrenLike(tree::Node* internal_parent,
-                              tree::Node* alien_node);
-    */
+  
   private:
     /// The DB
     CppSQLite3DB* mDB;
@@ -265,25 +225,11 @@ namespace creaImageIO
     std::string mFileName;
     /// Is the DB writable ?
     bool mWritable;
-    void SetWritable(bool w) { mWritable; }
+    void SetWritable(bool w) { mWritable = w; }
     bool GetWritable() const { return mWritable; }
        bool mIsAdding;
 
-    /*
-    struct TypeId
-    {
-      int type;
-      std::string id;
-      bool operator< (const TypeId& o) const 
-      {
-       return ((type<o.type) ||
-               ((type==o.type)&&id<o.id));
-      }
-    };
-    
-    typedef std::map<TypeId,tree::Node*> TypeIdToNodeMapType;
-    TypeIdToNodeMapType mTypeIdToNodeMap;
-    */
+   
   };
   // EO class SQLiteTreeHandler
   //=======================================================================