FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Maps agent data to database schema. More...
#include <database.hpp>
Public Member Functions | |
DatabaseEntry () | |
Default constructor for DatabaseEntry. | |
DatabaseEntry (Match match, unsigned long agentId, unsigned long pfileId) | |
constructor for DatabaseEntry More... | |
Public Attributes | |
long | agent_fk |
long | pfile_fk |
std::string | content |
std::string | hash |
std::string | type |
Type of statement found. More... | |
int | copy_startbyte |
int | copy_endbyte |
unsigned long | agent_fk |
unsigned long | pfile_fk |
unsigned | copy_startbyte |
unsigned | copy_endbyte |
Maps agent data to database schema.
Definition at line 24 of file database.hpp.
DatabaseEntry::DatabaseEntry | ( | Match | match, |
unsigned long | agentId, | ||
unsigned long | pfileId | ||
) |
constructor for DatabaseEntry
match | object of type Match class |
agentId | primary key of ScanCode agent |
pfileId | primary key of pfile |
Definition at line 29 of file scancode_dbhandler.cc.
long DatabaseEntry::agent_fk |
Id of agent performed the scan
Definition at line 29 of file database.hpp.
unsigned long DatabaseEntry::agent_fk |
Id of agent performed the scan
Definition at line 51 of file scancode_dbhandler.hpp.
std::string DatabaseEntry::content |
Statement found during the scan
Definition at line 31 of file database.hpp.
int DatabaseEntry::copy_endbyte |
Statement end offset from start of pfile content
Definition at line 45 of file database.hpp.
unsigned DatabaseEntry::copy_endbyte |
Statement end offset from start of pfile content
Definition at line 66 of file scancode_dbhandler.hpp.
int DatabaseEntry::copy_startbyte |
Statement start offset from start of pfile content
Definition at line 44 of file database.hpp.
unsigned DatabaseEntry::copy_startbyte |
Statement start offset from start of pfile content
Definition at line 65 of file scancode_dbhandler.hpp.
std::string DatabaseEntry::hash |
MD5 hash of the statement
Definition at line 32 of file database.hpp.
long DatabaseEntry::pfile_fk |
Id of pfile on which the scan was performed
Definition at line 30 of file database.hpp.
unsigned long DatabaseEntry::pfile_fk |
Id of pfile on which the scan was performed
Definition at line 52 of file scancode_dbhandler.hpp.
std::string DatabaseEntry::type |
Type of statement found.
Can be
Can be
Definition at line 43 of file database.hpp.