X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOSQLiteTreeHandler.h;h=1172298500f114096ee6195b71b0687251853084;hb=96ca5a0d7b7ccd6b4291160c19afd48e3207db2a;hp=6948675d43d05fe154702695df4fab97a2558e7f;hpb=381f766db11094bd9b96f9e948527cbec24f680a;p=creaImageIO.git diff --git a/src2/creaImageIOSQLiteTreeHandler.h b/src2/creaImageIOSQLiteTreeHandler.h index 6948675..1172298 100644 --- a/src2/creaImageIOSQLiteTreeHandler.h +++ b/src2/creaImageIOSQLiteTreeHandler.h @@ -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 TypeIdToNodeMapType; - TypeIdToNodeMapType mTypeIdToNodeMap; - */ + }; // EO class SQLiteTreeHandler //=======================================================================