ROSE  0.9.10.103
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 
44  void generateLibraryIdentificationDataBase ( const std::string& databaseName,
45  const std::string& libraryName,
46  const std::string& libraryVersion,
47  const std::string& libraryHash,
49  bool replace = false);
50 
51 
52 
69  LibToFuncsMap matchLibraryIdentificationDataBase (const std::string& databaseName,
71 
78  void insertFunctionToMap(LibToFuncsMap& libToFuncsMap,
79  const LibraryInfo& libraryInfo,
80  const FunctionInfo& functionInfo);
81 
82 
83 
84  }
85 #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...
void generateLibraryIdentificationDataBase(const std::string &databaseName, const std::string &libraryName, const std::string &libraryVersion, const std::string &libraryHash, const Rose::BinaryAnalysis::Partitioner2::Partitioner &partitioner, bool replace=false)
generate Library Identification Database This function takes a binary project (presumeably a library)...
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:293