23#ifndef vtkResourceFileLocator_h
24#define vtkResourceFileLocator_h
26#include "vtkCommonMiscModule.h"
33VTK_ABI_NAMESPACE_BEGIN
46 vtkSetMacro(LogVerbosity,
int);
47 vtkGetMacro(LogVerbosity,
int);
55 virtual std::string
Locate(
const std::string& anchor,
const std::string& landmark,
56 const std::string& defaultDir = std::string());
66 virtual std::string
Locate(
const std::string& anchor,
67 const std::vector<std::string>& landmark_prefixes,
const std::string& landmark,
68 const std::string& defaultDir = std::string());
106#define vtkGetLibraryPathForSymbol(function) \
107 vtkResourceFileLocator::GetLibraryPathForAddress(reinterpret_cast<const void*>(&function))
a simple class to control print indentation
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 PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkResourceFileLocator * New()
static std::string GetCurrentExecutablePath()
Return the path to the current executable.
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...
static std::string GetLibraryPathForAddress(const void *ptr)
Return the path to the library containing the given pointer.
static std::string GetLibraryPathForSymbolWin32(const void *fptr)
Returns the name of the library providing the symbol.
#define VTK_DEPRECATED_IN_9_6_0(reason)