20 #ifndef STEAM_ASSET_CATEGORY_H 21 #define STEAM_ASSET_CATEGORY_H 27 #include <boost/functional/hash.hpp> 74 : kind_(root), path_(subfolder) {};
76 bool operator== (
Category const& other)
const {
return kind_== other.kind_ && path_== other.path_; }
77 bool operator!= (
Category const& other)
const {
return kind_!= other.kind_ || path_!= other.path_; }
79 bool hasKind (
Kind refKind)
const {
return kind_ == refKind; }
81 void setPath (
string const& newpath) { this->path_ = newpath; }
84 operator string ()
const;
86 friend size_t hash_value (
Category const&);
92 int res = int(kind_) - int(co.kind_);
96 return path_.compare (co.path_);
106 boost::hash_combine(hash, cat.kind_);
107 boost::hash_combine(hash, cat.path_);
bool isWithin(Category const &) const
hierarchical inclusion test.
Tree like classification of Assets.
inline string literal This is a marker type to indicate that
Steam-Layer implementation namespace root.
Marker types to indicate a literal string and a Symbol.
Helper to use a single extension point for specialised hash functions.
Kind
top-level distinction of different Kinds of Assets.
The asset subsystem of the Steam-Layer.