12 #ifndef SST_CORE_CATEGORY_INFO_H
13 #define SST_CORE_CATEGORY_INFO_H
23 uint32_t category()
const {
27 static const char* categoryName(
int cat){
29 case COMPONENT_CATEGORY_PROCESSOR:
30 return "PROCESSOR COMPONENT";
31 case COMPONENT_CATEGORY_MEMORY:
32 return "MEMORY COMPONENT";
33 case COMPONENT_CATEGORY_NETWORK:
34 return "NETWORK COMPONENT";
35 case COMPONENT_CATEGORY_SYSTEM:
36 return "SYSTEM COMPONENT";
38 return "UNCATEGORIZED COMPONENT";
42 void toString(std::ostream& UNUSED(os))
const {
43 os <<
" CATEGORY: " << categoryName(cat_) <<
"\n";
46 template <
class XMLNode>
void outputXML(XMLNode* UNUSED(node)){
51 cat_(T::ELI_getCategory())
59 #define SST_ELI_CATEGORY_INFO(cat) \
60 static uint32_t ELI_getCategory() { \
Definition: categoryInfo.h:21