29 uint32_t category()
const {
return cat_; }
31 static const char* categoryName(
int cat)
34 case COMPONENT_CATEGORY_PROCESSOR:
35 return "PROCESSOR COMPONENT";
36 case COMPONENT_CATEGORY_MEMORY:
37 return "MEMORY COMPONENT";
38 case COMPONENT_CATEGORY_NETWORK:
39 return "NETWORK COMPONENT";
40 case COMPONENT_CATEGORY_SYSTEM:
41 return "SYSTEM COMPONENT";
43 return "UNCATEGORIZED COMPONENT";
47 void toString(std::ostream& os)
const { os <<
" Category: " << categoryName(cat_) <<
"\n"; }
49 template <
class XMLNode>
50 void outputXML(XMLNode* UNUSED(node))
55 explicit ProvidesCategory(T* UNUSED(t)) :
56 cat_(T::ELI_getCategory())