FOSSology  4.4.0
Open Source License Compliance by Open Source Software
DatabaseEntry Class Reference

Maps agent data to database schema. More...

#include <database.hpp>

Collaboration diagram for DatabaseEntry:
Collaboration graph

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
 

Detailed Description

Maps agent data to database schema.

Definition at line 24 of file database.hpp.

Constructor & Destructor Documentation

◆ DatabaseEntry()

DatabaseEntry::DatabaseEntry ( Match  match,
unsigned long  agentId,
unsigned long  pfileId 
)

constructor for DatabaseEntry

Parameters
matchobject of type Match class
agentIdprimary key of ScanCode agent
pfileIdprimary key of pfile

Definition at line 29 of file scancode_dbhandler.cc.

Member Data Documentation

◆ agent_fk [1/2]

long DatabaseEntry::agent_fk

Id of agent performed the scan

Definition at line 29 of file database.hpp.

◆ agent_fk [2/2]

unsigned long DatabaseEntry::agent_fk

Id of agent performed the scan

Definition at line 51 of file scancode_dbhandler.hpp.

◆ content

std::string DatabaseEntry::content

Statement found during the scan

Definition at line 31 of file database.hpp.

◆ copy_endbyte [1/2]

int DatabaseEntry::copy_endbyte

Statement end offset from start of pfile content

Definition at line 45 of file database.hpp.

◆ copy_endbyte [2/2]

unsigned DatabaseEntry::copy_endbyte

Statement end offset from start of pfile content

Definition at line 66 of file scancode_dbhandler.hpp.

◆ copy_startbyte [1/2]

int DatabaseEntry::copy_startbyte

Statement start offset from start of pfile content

Definition at line 44 of file database.hpp.

◆ copy_startbyte [2/2]

unsigned DatabaseEntry::copy_startbyte

Statement start offset from start of pfile content

Definition at line 65 of file scancode_dbhandler.hpp.

◆ hash

std::string DatabaseEntry::hash

MD5 hash of the statement

Definition at line 32 of file database.hpp.

◆ pfile_fk [1/2]

long DatabaseEntry::pfile_fk

Id of pfile on which the scan was performed

Definition at line 30 of file database.hpp.

◆ pfile_fk [2/2]

unsigned long DatabaseEntry::pfile_fk

Id of pfile on which the scan was performed

Definition at line 52 of file scancode_dbhandler.hpp.

◆ type

std::string DatabaseEntry::type

Type of statement found.

Can be

  • statement for Copyright
  • author for Author
  • url for URL
  • email for email
  • ecc for ECC

Can be

  • copyright for Copyright
  • author for Author
  • url for URL
  • email for email

Definition at line 43 of file database.hpp.


The documentation for this class was generated from the following files: