14 template<
typename...
Args>
15 requires std::constructible_from<std::filesystem::path,
Args&&...>
22 return path_.string();
27 return path_.extension() ==
ext;
32 return path_.stem().string();
50 std::filesystem::path path_;
58 return std::filesystem::hash_value(resource_path.path_);
Definition resource_path.h:12
bool has_extension(std::string_view ext) const
Definition resource_path.h:25
std::string stem() const
Definition resource_path.h:30
ResourcePath(Args &&... args)
Definition resource_path.h:16
friend ResourcePath operator/(const ResourcePath &lhs, const ResourcePath &rhs)
Definition resource_path.h:36
friend std::ostream & operator<<(std::ostream &out, const ResourcePath &resource_path)
Definition resource_path.h:44
std::string string() const
Definition resource_path.h:20
friend bool operator==(const ResourcePath &, const ResourcePath &)=default
friend ResourcePath operator/(const ResourcePath &lhs, std::string_view rhs)
Definition resource_path.h:40
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56
size_t operator()(const osc::ResourcePath &resource_path) const noexcept
Definition resource_path.h:56