BinaryIdPathResolver.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc {
4 namespace Databases {
5 namespace ODBC {
6 
8  {
9  MsiInstall* msiInstall;
10 
11  public:
12  BinaryIdPathResolver(MsiInstall* msiInstall);
13 
15  virtual std::wstring readContent(const std::wstring& path);
16 
17  virtual void setBasePath(const std::wstring& path) {}
18  virtual std::wstring getFolderPath(const std::wstring& path) const {return L"";}
19 
29  std::wstring pathToId(const std::wstring& path);
30 
32  void replaceNonIdCharsWithUnderscore(std::wstring& str);
33  };
34 }
35 }
36 }
virtual void setBasePath(const std::wstring &path)
Set base path for resolving relative paths.
Definition: BinaryIdPathResolver.h:17
virtual std::wstring readContent(const std::wstring &path)
convert path to binary ID and read its content from msi.
Definition: BinaryIdPathResolver.cpp:14
BinaryIdPathResolver(MsiInstall *msiInstall)
Definition: BinaryIdPathResolver.cpp:9
virtual std::wstring getFolderPath(const std::wstring &path) const
get folder of the provided path
Definition: BinaryIdPathResolver.h:18
Definition: PathResolver.h:14
void replaceNonIdCharsWithUnderscore(std::wstring &str)
replace all non-valid ID characters with '_'
Definition: BinaryIdPathResolver.cpp:42
Definition: BinaryIdPathResolver.h:7
std::wstring pathToId(const std::wstring &path)
Definition: BinaryIdPathResolver.cpp:24


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com