#include <category.hpp>

Public Member Functions | |
| Category (const Kind root, string subfolder="") | |
| int | compare (const Category &co) const |
| bool | hasKind (Kind refKind) const |
| bool | isWithin (const Category &) const |
| hierarchical inclusion test. | |
| operator string () const | |
| human readable representation of the asset::Category. | |
| bool | operator!= (const Category &other) const |
| bool | operator== (const Category &other) const |
| void | setPath (const string &newpath) |
Private Attributes | |
| Kind | kind_ |
| string | path_ |
Friends | |
| size_t | hash_value (const Category &cat) |
Definition at line 64 of file category.hpp.
| bool asset::Category::isWithin | ( | const Category & | ref | ) | const |
this can be considered a subcategory of the given reference Definition at line 62 of file category.cpp.
References hasKind(), and path_.

| asset::Category::operator string | ( | ) | const |
Definition at line 39 of file category.cpp.
00040 { 00041 char *kinds[6] = { "AUDIO" 00042 , "VIDEO" 00043 , "EFFECT" 00044 , "CODEC" 00045 , "STRUCT" 00046 , "META" 00047 }; 00048 REQUIRE ( 0<=kind_ && kind_< 6 ); 00049 string str (kinds[kind_]); 00050 if (!isnil (path_)) 00051 str += "/"+path_; 00052 return str; 00053 }
1.5.5