1 #ifndef SST_CORE_CATEGORY_INFO_H
2 #define SST_CORE_CATEGORY_INFO_H
12 uint32_t category()
const {
16 static const char* categoryName(
int cat){
18 case COMPONENT_CATEGORY_PROCESSOR:
19 return "PROCESSOR COMPONENT";
20 case COMPONENT_CATEGORY_MEMORY:
21 return "MEMORY COMPONENT";
22 case COMPONENT_CATEGORY_NETWORK:
23 return "NETWORK COMPONENT";
24 case COMPONENT_CATEGORY_SYSTEM:
25 return "SYSTEM COMPONENT";
27 return "UNCATEGORIZED COMPONENT";
31 void toString(std::ostream& UNUSED(os))
const {
32 os <<
" CATEGORY: " << categoryName(cat_) <<
"\n";
35 template <
class XMLNode>
void outputXML(XMLNode* UNUSED(node)){
40 cat_(T::ELI_getCategory())
48 #define SST_ELI_CATEGORY_INFO(cat) \
49 static uint32_t ELI_getCategory() { \
Definition: categoryInfo.h:10