+
+
+///////////////////////////////////////////////////////////////////////////////
+// Fill attributes structure with attributes present in database (inside vector
+// and not present (outside)
+///////////////////////////////////////////////////////////////////////////////
+void Gimmick::fillVectInfos(std::vector<std::string> i_attr, OutputAttr &infos)
+{
+ //test if a tag is present in Database descriptor
+ TreeHandler * handler=GetTreeHandler(infos.db);
+ mImageAdder.SetTreeHandler(handler);
+ std::vector<std::string>::const_iterator it = i_attr.begin();
+ for (;it != i_attr.end(); it++)
+ {
+ if( mImageAdder.isAttributeExist((*it)) != "" ) // in DB
+ {
+printf("EED Gimmick::fillVectInfos inside %s\n",(*it).c_str());
+ infos.inside.push_back((*it));
+ } else {
+ infos.outside.push_back((*it)); // Need to scan again the files
+printf("EED Gimmick::fillVectInfos outside %s\n",(*it).c_str());
+ } // if
+ } // for
+}
+
+const std::string Gimmick::getSummary()
+{
+ const AddProgress& p = GetAddProgress();
+ std::stringstream mess;
+ mess << "Dirs \tscanned\t: " << p.GetNumberScannedDirs() << "\n";
+ mess << "Files\tscanned\t: " << p.GetNumberScannedFiles() << "\n";
+ mess << "Files\thandled\t: " << p.GetNumberHandledFiles() << "\n\n";
+ mess << "Files\tadded \t: " << p.GetNumberAddedFiles() << "\n\n";
+ return mess.str();
+}
+