1 #ifndef __creaImageIOSynchron_h_INCLUDED__
2 #define __creaImageIOSynchron_h_INCLUDED__
8 #include "CppSQLite3.h"
13 //================================================================================================================
19 std::string recursive;
21 AddList(CppSQLite3Query& res):
22 key(res.getStringField(0)),
23 path(res.getStringField(1)),
24 recursive(res.getStringField(2)),
25 nbFiles(res.getStringField(3))
28 //================================================================================================================
30 //================================================================================================================
39 RemoveList(CppSQLite3Query& res):
40 key(res.getStringField(1)),
41 path(res.getStringField(2)),
42 remove(res.getStringField(3)),
43 time(res.getStringField(4))
46 //================================================================================================================
48 //================================================================================================================
52 Synchronizer(const std::string& path);
53 virtual ~Synchronizer();
55 void InsertAddOp(const std::string& path,
56 const std::string& recursive,
57 const std::string& nChildren);
58 void InsertIgnoreFile(const std::string& addKey,
59 const std::string& path,
60 const std::string& remove,
61 const std::string& time);
62 void RemoveEntry(const std::string i_table, const std::string i_key);
63 void GetFileList(std::vector<AddList>& files);
64 void GetIgnoredFiles(const std::string& key, std::vector<std::string> &ignoreList);
65 std::string GetAttribute(const std::string& attribute,
66 const std::string& table,
67 const std::string& searchParam,
68 const std::string& searchValue);
69 void SetAttribute(const std::string& attribute,
70 const std::string& table,
71 const std::string& value,
72 const std::string& searchParam,
73 const std::string& searchValue);
74 std::vector<AddList> mAddList;
75 std::vector<RemoveList> mIgnoreList;
84 void CleanName(std::string& str) const;
86 std::vector<std::string> GetIgnoreList(const std::string &i_key);
89 //================================================================================================================