14 template<
typename... Args>
15 requires std::constructible_from<std::filesystem::path, Args&&...>
17 path_{std::forward<Args>(args)...}
22 return path_.string();
27 return path_.extension() == ext;
32 return path_.stem().string();
46 return out << resource_path.path_;
50 std::filesystem::path path_;
55struct std::hash<osc::ResourcePath> final {
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
size_t operator()(const osc::ResourcePath &resource_path) const noexcept
Definition resource_path.h:56