//====================================================================
//====================================================================
///Returns the id of the path if it's indexed, blank otherwise
//====================================================================
//====================================================================
///Returns the id of the path if it's indexed, blank otherwise
///Sets the current path's parent
bool AddDirectory(const std::string& parent,
const std::string& path,
const time_t lastModif,
///Sets the current path's parent
bool AddDirectory(const std::string& parent,
const std::string& path,
const time_t lastModif,
- void AddFile(const std::string& path, const time_t lastModif, const time_t lastRead);
+ void AddFile(const std::string& path, const time_t lastModif, const time_t lastRead, const std::string& refdb);
- void AddFile(const std::string& parentId,const std::string& path, const time_t lastModif, const time_t lastRead);
+ void AddFile(const std::string& parentId,const std::string& path, const time_t lastModif, const time_t lastRead, const std::string& refdb);
///Sets the attribute to the value passed as parameter where the searchParameter is searchValue
void SetAttribute(const std::string& attName,
const std::string& attValue,
const std::string& searchParam,
const std::string& searchValue);
///Removes the given node
///Sets the attribute to the value passed as parameter where the searchParameter is searchValue
void SetAttribute(const std::string& attName,
const std::string& attValue,
const std::string& searchParam,
const std::string& searchValue);
///Removes the given node
///Checks the timestamp in the database and compares it with the given one.
//If there is a difference, it will return false, otherwise it will return true.
///Checks the timestamp in the database and compares it with the given one.
//If there is a difference, it will return false, otherwise it will return true.
//======================================================================
//======================================================================
// Removes a file from the database
//======================================================================
//======================================================================
// Removes a file from the database