ROSE  0.9.10.89
Public Member Functions | List of all members
LibraryIdentification::FunctionIdDatabaseInterface Class Reference

Description

Creates and holds the handle for the sqlite database used for storing and matching libraries and functions, FLIRT style.

Definition at line 23 of file FunctionIdDatabaseInterface.h.

#include <FunctionIdDatabaseInterface.h>

Public Member Functions

 FunctionIdDatabaseInterface (std::string dbName)
 FunctionIdentification. More...
 
void createTables ()
 createTables Make sure that all the tables are defined in the function identification database. More...
 
void addFunctionToDB (const FunctionInfo &fInfo, bool replace=false)
 
bool matchFunction (FunctionInfo &fInfo)
 Lookup a function in the database. More...
 
void addLibraryToDB (const LibraryInfo &lInfo, bool replace=false)
 
bool matchLibrary (LibraryInfo &fInfo)
 Lookup a library in the database. More...
 

Constructor & Destructor Documentation

LibraryIdentification::FunctionIdDatabaseInterface::FunctionIdDatabaseInterface ( std::string  dbName)

FunctionIdentification.

Constructor. Either opens or creates a database with file named dbName. The database should have two tables in it, functions and libraries.

Parameters
[in]dbNameName of the database to open

Member Function Documentation

void LibraryIdentification::FunctionIdDatabaseInterface::createTables ( )

createTables Make sure that all the tables are defined in the function identification database.

The database should have two tables in it, functions and libraries. Functions uniquely identifies functions and the library they belong to. Libraries uniquely identifies libraries, and contains metadata about them.

bool LibraryIdentification::FunctionIdDatabaseInterface::matchFunction ( FunctionInfo fInfo)

Lookup a function in the database.

True returned if found

Parameters
[in,out]fInfoThe FunctionInfo only needs to contain the hash, the rest will be filled in.
bool LibraryIdentification::FunctionIdDatabaseInterface::matchLibrary ( LibraryInfo fInfo)

Lookup a library in the database.

True returned if found

Parameters
[in,out]lInfoThe LibraryInfo only needs to contain the hash, the rest will be filled in.

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