29 #ifndef STEAM_ASSET_CATEGORY_H 30 #define STEAM_ASSET_CATEGORY_H 36 #include <boost/functional/hash.hpp> 83 : kind_(root), path_(subfolder) {};
85 bool operator== (
Category const& other)
const {
return kind_== other.kind_ && path_== other.path_; }
86 bool operator!= (
Category const& other)
const {
return kind_!= other.kind_ || path_!= other.path_; }
88 bool hasKind (
Kind refKind)
const {
return kind_ == refKind; }
90 void setPath (
string const& newpath) { this->path_ = newpath; }
93 operator string ()
const;
95 friend size_t hash_value (
Category const&);
101 int res = int(kind_) - int(co.kind_);
105 return path_.compare (co.path_);
115 boost::hash_combine(hash, cat.kind_);
116 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.