ROSE  0.9.11.56
libraryIdentification.h
1 #ifndef LIBRARY_IDENTIFICATION_H
2 #define LIBRARY_IDENTIFICATION_H
3 
4 #include "LibraryInfo.h"
5 #include "FunctionInfo.h"
6 #include "FunctionIdDatabaseInterface.h"
7 
14 namespace LibraryIdentification
15  {
16 
25  typedef std::map<LibraryInfo, std::set<FunctionInfo> > LibToFuncsMap;
26 
27 
45  void generateLibraryIdentificationDataBase ( const std::string& databaseName,
46  const std::string& libraryName,
47  const std::string& libraryVersion,
48  const std::string& libraryHash,
50  enum DUPLICATE_OPTION dupOption = COMBINE);
51 
52 
53 
71  LibToFuncsMap matchLibraryIdentificationDataBase (const std::string& databaseName,
73 
80  void insertFunctionToMap(LibToFuncsMap& libToFuncsMap,
81  const LibraryInfo& libraryInfo,
82  const FunctionInfo& functionInfo);
83 
84 
85 
86  }
87 #endif
class FunctionInfo Combines all the information to uniquely identify a single function in one object...
Definition: FunctionInfo.h:22
LibToFuncsMap matchLibraryIdentificationDataBase(const std::string &databaseName, const Rose::BinaryAnalysis::Partitioner2::Partitioner &partitioner)
match functions in project to Library Identification Database This is a function to simplify matching...
DUPLICATE_OPTION
Option for what to do if a function with the same hash is found when adding a function.
std::map< LibraryInfo, std::set< FunctionInfo > > LibToFuncsMap
typedef libToFuncMap This is used as the type to list which functions are found in which libraries fr...
void insertFunctionToMap(LibToFuncsMap &libToFuncsMap, const LibraryInfo &libraryInfo, const FunctionInfo &functionInfo)
Private helper function for adding idents to the libToFuncsMap.
Partitions instructions into basic blocks and functions.
Definition: Partitioner.h:317
void generateLibraryIdentificationDataBase(const std::string &databaseName, const std::string &libraryName, const std::string &libraryVersion, const std::string &libraryHash, const Rose::BinaryAnalysis::Partitioner2::Partitioner &partitioner, enum DUPLICATE_OPTION dupOption=COMBINE)
generate Library Identification Database This function takes a binary project (presumeably a library)...