]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOGimmick.cpp
Added command line interaction with the synchronization option.
[creaImageIO.git] / src2 / creaImageIOGimmick.cpp
index 9b8c9241db490176b75ec487b88d4078f3c64258..e38db81ff628e90f987f3ef3296925a079665bf7 100644 (file)
@@ -80,7 +80,8 @@ namespace creaImageIO
    // @param i_location : DB location                                                              //
    // return : -                                                                                                               //
   ///////////////////////////////////////////////////////////////////////
-       void Gimmick::addDB(std::string &i_name, std::string &i_location)
+       void Gimmick::addDB(const std::string &i_name, 
+                           const std::string &i_location)
        {
                if(mTreeHandlerMap.find(i_name) == mTreeHandlerMap.end())
                {
@@ -97,7 +98,9 @@ namespace creaImageIO
   // @param i_locDB : location of DB                                                                      //
   // return : the SQLiteTreeHandler object on DB                                                  //
        /////////////////////////////////////////////////////////////////////////
-       SQLiteTreeHandler *Gimmick::createDB(std::string &i_name, std::string &i_locDesc, std::string &i_locDB)
+       SQLiteTreeHandler *Gimmick::createDB(const std::string &i_name,
+                                            const std::string &i_locDesc,
+                                            const std::string &i_locDB)
   {
       SQLiteTreeHandler *sqlTreeH = new SQLiteTreeHandler(i_locDB);
     // Create or open local database
@@ -301,7 +304,7 @@ namespace creaImageIO
 
   //========================================================================
   void Gimmick::RemoveFile(const std::string& d, 
-         const tree::Node* & node)
+                          tree::Node* node)
   {
          mImageAdder.SetSynchronizer(mSynchronizer);
          mTimestampDatabase->RemoveNode("PATH",node);