11 #ifndef OJOS_AGENT_DATABASE_HANDLER_HPP 
   12 #define OJOS_AGENT_DATABASE_HANDLER_HPP 
   14 #include <unordered_map> 
   22 #include "ojomatch.hpp" 
   50     const unsigned long int p) :
 
   72                                                      bool ignoreFilesWithMimeType);
 
   76       const unsigned long fl_fk) 
const;
 
   84       std::string 
const &rfShortName) 
const;
 
unsigned long getCachedLicenseIdForName(std::string const &rfShortName) const
 
OjosDatabaseHandler spawn() const
 
std::vector< unsigned long > queryFileIdsForUpload(int uploadId, int agentId, bool ignoreFilesWithMimeType)
 
bool insertNoResultInDatabase(OjoDatabaseEntry &entry) const
Save no result to the database.
 
bool saveHighlightToDatabase(const ojomatch &match, const unsigned long fl_fk) const
 
unsigned long saveLicenseToDatabase(OjoDatabaseEntry &entry) const
Save findings to the database if agent was called by scheduler.
 
std::unordered_map< std::string, long > licenseRefCache
 
OjosDatabaseHandler(fo::DbManager dbManager)
 
unsigned long selectOrInsertLicenseIdForName(std::string rfShortname, const int groupId, const int userId)
 
unsigned long getLicenseIdForName(std::string const &rfShortName, const int groupId, const int userId)
Get the license id for a given short name.
 
Database handler for agents.
 
DbManager dbManager
DbManager to use.
 
DB utility functions for agents.
 
General utility functions for CPP.
 
The main FOSSology C library.
 
OjoDatabaseEntry(const unsigned long int l, const unsigned long int a, const unsigned long int p)
 
const unsigned long int license_fk
 
const unsigned long int agent_fk
 
const unsigned long int pfile_fk
 
Store the results of a regex match.
 
Store the results of a regex match.