20 #if !defined(__MITSUBA_CORE_FRESOLVER_H_)
21 #define __MITSUBA_CORE_FRESOLVER_H_
23 #include <mitsuba/mitsuba.h>
24 #include <boost/filesystem.hpp>
25 #include <boost/filesystem/fstream.hpp>
58 fs::path resolve(
const fs::path &path)
const;
66 std::vector<fs::path> resolveAll(
const fs::path &path)
const;
72 fs::path resolveAbsolute(
const fs::path &path)
const;
78 void appendPath(
const fs::path &path);
81 void prependPath(
const fs::path &path);
90 inline const fs::path &
getPath(
size_t index)
const {
return m_paths[index]; }
99 std::deque<fs::path> m_paths;
#define MTS_EXPORT_CORE
Definition: getopt.h:29
File resolution helper.
Definition: fresolver.h:41
const fs::path & getPath(size_t index) const
Return one of the stored paths.
Definition: fresolver.h:90
#define MTS_DECLARE_CLASS()
This macro must be used in the initial definition in classes that derive from Object.
Definition: class.h:158
Parent of all Mitsuba classes.
Definition: object.h:38
size_t getPathCount() const
Return the number of stored paths.
Definition: fresolver.h:87
virtual std::string toString() const
Return a human-readable string representation of the object's contents.