//======================================================================
- /*
- ///
- 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;
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
//=======================================================================