#include <PathResolver.h>
Public Member Functions | |
virtual std::wstring | readContent (const std::wstring &path)=0 |
Locate the path and read its content. | |
virtual void | setBasePath (const std::wstring &path)=0 |
Set base path for resolving relative paths. | |
virtual std::wstring | getFolderPath (const std::wstring &path) const =0 |
get folder of the provided path |
This interface abstracts resolving inserted paths and reading corresponding content. It allows to support insertion both from a file system and e.g. MSI binary streams where inserted paths may be mapped to the corresponding binary stream IDs.
virtual std::wstring AppSecInc::Databases::ODBC::PathResolver::getFolderPath | ( | const std::wstring & | path | ) | const [pure virtual] |
get folder of the provided path
Implemented in MockNameResolver, AppSecInc::Databases::ODBC::FilesystemPathResolver, and AppSecInc::Databases::ODBC::BinaryIdPathResolver.
virtual std::wstring AppSecInc::Databases::ODBC::PathResolver::readContent | ( | const std::wstring & | path | ) | [pure virtual] |
Locate the path and read its content.
Implemented in MockNameResolver, AppSecInc::Databases::ODBC::FilesystemPathResolver, and AppSecInc::Databases::ODBC::BinaryIdPathResolver.
virtual void AppSecInc::Databases::ODBC::PathResolver::setBasePath | ( | const std::wstring & | path | ) | [pure virtual] |
Set base path for resolving relative paths.
Implemented in MockNameResolver, AppSecInc::Databases::ODBC::FilesystemPathResolver, and AppSecInc::Databases::ODBC::BinaryIdPathResolver.
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |