ROSE  0.9.10.89
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  SgProject* project,
48  bool replace = false);
49 
50 
51 
68  LibToFuncsMap matchLibraryIdentificationDataBase (const std::string& databaseName,
69  SgProject* project);
70 
77  void insertFunctionToMap(LibToFuncsMap& libToFuncsMap,
78  const LibraryInfo& libraryInfo,
79  const FunctionInfo& functionInfo);
80 
81 
82 
83  }
84 #endif
LibToFuncsMap matchLibraryIdentificationDataBase(const std::string &databaseName, SgProject *project)
match functions in project to Library Identification Database This is a function to simplify matching...
class FunctionInfo Combines all the information to uniquely identify a single function in one object...
Definition: FunctionInfo.h:21
void generateLibraryIdentificationDataBase(const std::string &databaseName, const std::string &libraryName, const std::string &libraryVersion, SgProject *project, 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.
This class represents a source project, with a list of SgFile objects and global information about th...