32 #ifndef vtkResourceFileLocator_h
33 #define vtkResourceFileLocator_h
35 #include "vtkCommonMiscModule.h"
68 vtkSetMacro(LogVerbosity,
int);
69 vtkGetMacro(LogVerbosity,
int);
92 const std::vector<std::string>& landmark_prefixes,
const std::string& landmark,
120 #if defined(_WIN32) && !defined(__CYGWIN__)
121 #define vtkGetLibraryPathForSymbol(function) \
122 vtkResourceFileLocator::GetLibraryPathForSymbolWin32(reinterpret_cast<const void*>(&function))
124 #define vtkGetLibraryPathForSymbol(function) \
125 vtkResourceFileLocator::GetLibraryPathForSymbolUnix(#function)
a simple class to control print indentation
abstract base class for most VTK objects
utility to locate resource files.
virtual std::string Locate(const std::string &anchor, const std::string &landmark, const std::string &defaultDir=std::string())
Given a starting anchor directory, look for the landmark file relative to the anchor.
void SetPrintDebugInformation(bool)
Enable/disable printing of testing of various path during Locate to stdout.
~vtkResourceFileLocator() override
bool GetPrintDebugInformation()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkResourceFileLocator * New()
static std::string GetLibraryPathForSymbolUnix(const char *symbolname)
Returns the name of the library providing the symbol.
virtual std::string Locate(const std::string &anchor, const std::vector< std::string > &landmark_prefixes, const std::string &landmark, const std::string &defaultDir=std::string())
This variant is used to look for landmark relative to the anchor using additional prefixes for the la...
void PrintDebugInformationOff()
void PrintDebugInformationOn()
static std::string GetLibraryPathForSymbolWin32(const void *fptr)